Class: Scale::SVG
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Attributes included from Node
Instance Method Summary collapse
-
#initialize(width: nil, height: nil) ⇒ SVG
constructor
A new instance of SVG.
Methods included from Node
#add, #append_to, #children, #each, #to_xml, #xml_attributes
Constructor Details
#initialize(width: nil, height: nil) ⇒ SVG
Returns a new instance of SVG.
8 9 10 |
# File 'lib/scale/svg.rb', line 8 def initialize(width: nil, height: nil) @width, @height = width, height end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
6 7 8 |
# File 'lib/scale/svg.rb', line 6 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
6 7 8 |
# File 'lib/scale/svg.rb', line 6 def width @width end |