class NewGame
Public Class Methods
new(x, y, window)
click to toggle source
Calls superclass method
MenuItem::new
# File lib/menuitem.rb, line 31 def initialize(x, y, window) super(x, y, window) @text = 'New Game' end
Public Instance Methods
on_enter()
click to toggle source
# File lib/menuitem.rb, line 36 def on_enter @window.new_game end