Class: Pimento::VerticalLineComponent

Inherits:
Component
  • Object
show all
Defined in:
lib/pimento/component.rb

Direct Known Subclasses

BevelButton, VerticalSlider

Instance Attribute Summary collapse

Attributes inherited from Component

#x, #y

Instance Method Summary collapse

Methods inherited from Component

for, handles, #num_objects, #render_object, #render_object_record, #template_name

Methods included from Renderable

#render

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

#heightObject

Returns the value of attribute height.



58
59
60
# File 'lib/pimento/component.rb', line 58

def height
  @height
end