Parent

Methods

Class/Module Index [+]

Quicksearch

Compass::SassExtensions::Functions::ImageSize::ImageProperties

Public Class Methods

new(file) click to toggle source
# File lib/compass/sass_extensions/functions/image_size.rb, line 17
def initialize(file)
  @file = file
  @file_type = File.extname(@file)[1..-1]
end

Public Instance Methods

size() click to toggle source
# File lib/compass/sass_extensions/functions/image_size.rb, line 22
def size
  @dimensions ||= send(:"get_size_for_#{@file_type}")
rescue NoMethodError
  raise Sass::SyntaxError, "Unrecognized file type: #{@file_type}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.