Class: Core::GUI::Draggable
Instance Attribute Summary
Attributes inherited from Element
#h, #w, #x, #xoff, #y, #yoff, #zoff
Instance Method Summary collapse
- #draw ⇒ Object
-
#initialize(x, y, w, h, type, sprite) ⇒ Draggable
constructor
A new instance of Draggable.
- #update(window) ⇒ Object
Methods inherited from Element
Constructor Details
#initialize(x, y, w, h, type, sprite) ⇒ Draggable
Returns a new instance of Draggable.
5 6 7 8 9 |
# File 'lib/gui/draggable.rb', line 5 def initialize(x, y, w, h, type, sprite) super(x, y, w, h) @type = type @sprite = sprite end |