Class: HighScore
Instance Method Summary collapse
-
#initialize(x, y, window) ⇒ HighScore
constructor
A new instance of HighScore.
- #on_enter ⇒ Object
Methods inherited from MenuItem
#button_down, #draw, #select, #unselect
Constructor Details
#initialize(x, y, window) ⇒ HighScore
Returns a new instance of HighScore.
53 54 55 56 |
# File 'lib/menuitem.rb', line 53 def initialize(x, y, window) super(x, y, window) @text = 'High Score' end |
Instance Method Details
#on_enter ⇒ Object
58 59 60 |
# File 'lib/menuitem.rb', line 58 def on_enter @window.high_score end |