Class: Core::GUI::Slider
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Element
#h, #w, #x, #xoff, #y, #yoff, #zoff
Instance Method Summary collapse
-
#initialize(x, y, w, h) ⇒ Slider
constructor
A new instance of Slider.
Methods inherited from Element
Constructor Details
#initialize(x, y, w, h) ⇒ Slider
Returns a new instance of Slider.
5 6 7 8 |
# File 'lib/gui/slider.rb', line 5 def initialize(x, y, w, h) super @value = 0 end |
Instance Attribute Details
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/gui/slider.rb', line 4 def value @value end |