Class: Continue
Instance Method Summary collapse
-
#initialize(x, y, window) ⇒ Continue
constructor
A new instance of Continue.
- #on_enter ⇒ Object
Methods inherited from MenuItem
#button_down, #draw, #select, #unselect
Constructor Details
#initialize(x, y, window) ⇒ Continue
Returns a new instance of Continue.
42 43 44 45 |
# File 'lib/menuitem.rb', line 42 def initialize(x, y, window) super(x, y, window) @text = 'Continue' end |
Instance Method Details
#on_enter ⇒ Object
47 48 49 |
# File 'lib/menuitem.rb', line 47 def on_enter @window.continue end |