Class: SvgSprite::Sprite
- Inherits:
-
Object
- Object
- SvgSprite::Sprite
- Defined in:
- lib/svg_sprite/sprite.rb
Instance Method Summary collapse
-
#initialize(source, template, options) ⇒ Sprite
constructor
A new instance of Sprite.
- #render ⇒ Object
Constructor Details
#initialize(source, template, options) ⇒ Sprite
Returns a new instance of Sprite.
3 4 5 6 7 |
# File 'lib/svg_sprite/sprite.rb', line 3 def initialize(source, template, ) @source = source @template = template = end |
Instance Method Details
#render ⇒ Object
9 10 11 |
# File 'lib/svg_sprite/sprite.rb', line 9 def render @template.call(@source, ) end |