Class: Pimento::VerticalLineComponent
- Defined in:
- lib/pimento/component.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
Attributes inherited from Component
Instance Method Summary collapse
-
#initialize(canvas, x, y, height) ⇒ VerticalLineComponent
constructor
A new instance of VerticalLineComponent.
Methods inherited from Component
for, handles, #num_objects, #render_object, #render_object_record, #template_name
Methods included from Renderable
Constructor Details
#initialize(canvas, x, y, height) ⇒ VerticalLineComponent
60 61 62 63 |
# File 'lib/pimento/component.rb', line 60 def initialize(canvas, x, y, height) super(canvas, x, y) @height = height end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
58 59 60 |
# File 'lib/pimento/component.rb', line 58 def height @height end |