Class: Svgeez::Elements::SvgElement
- Inherits:
-
Object
- Object
- Svgeez::Elements::SvgElement
- Defined in:
- lib/svgeez/elements/svg_element.rb
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(source, destination, prefix) ⇒ SvgElement
constructor
A new instance of SvgElement.
Constructor Details
#initialize(source, destination, prefix) ⇒ SvgElement
4 5 6 7 8 |
# File 'lib/svgeez/elements/svg_element.rb', line 4 def initialize(source, destination, prefix) @source = source @destination = destination @prefix = prefix end |
Instance Method Details
#build ⇒ Object
10 11 12 |
# File 'lib/svgeez/elements/svg_element.rb', line 10 def build %(<svg id="#{@destination.file_id}" xmlns="http://www.w3.org/2000/svg">#{symbol_elements.join}</svg>) end |