Class: HighScore

Inherits:
MenuItem show all
Defined in:
lib/menuitem.rb

Instance Method Summary collapse

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_enterObject


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

def on_enter
  @window.high_score
end