Method: Compass::SassExtensions::Sprites::Image#initialize
- Defined in:
- lib/compass/sass_extensions/sprites/image.rb
#initialize(base, relative_file, options) ⇒ Image
Returns a new instance of Image.
21 22 23 24 25 |
# File 'lib/compass/sass_extensions/sprites/image.rb', line 21 def initialize(base, relative_file, ) @base, @relative_file, @options = base, relative_file, @left = @top = 0 @name = File.basename(relative_file, '.png') end |