Class: Waxy::Render::Svg::Canvas
- Inherits:
-
Object
- Object
- Waxy::Render::Svg::Canvas
- Defined in:
- lib/waxy/render/canvas.rb
Overview
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(_width = 1000, _height = 1000) ⇒ Canvas
constructor
A new instance of Canvas.
- #to_svg ⇒ Object
Constructor Details
#initialize(_width = 1000, _height = 1000) ⇒ Canvas
Returns a new instance of Canvas.
11 12 13 14 15 16 |
# File 'lib/waxy/render/canvas.rb', line 11 def initialize(_width = 1000, _height = 1000) @width = _width @height = _height @body = '' end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
9 10 11 |
# File 'lib/waxy/render/canvas.rb', line 9 def body @body end |
#height ⇒ Object
Returns the value of attribute height.
8 9 10 |
# File 'lib/waxy/render/canvas.rb', line 8 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
8 9 10 |
# File 'lib/waxy/render/canvas.rb', line 8 def width @width end |