Class: Smagacor::GameMenuItem
- Defined in:
- lib/smagacor/smagacor-ui.rb
Overview
Used to identify a game in the list view
Instance Attribute Summary collapse
-
#game_info ⇒ Object
readonly
Returns the value of attribute game_info.
Instance Method Summary collapse
-
#initialize(parent, gameinfo) ⇒ GameMenuItem
constructor
A new instance of GameMenuItem.
- #rtti ⇒ Object
Constructor Details
#initialize(parent, gameinfo) ⇒ GameMenuItem
Returns a new instance of GameMenuItem.
36 37 38 39 |
# File 'lib/smagacor/smagacor-ui.rb', line 36 def initialize( parent, gameinfo ) super( parent, gameinfo.name ) @game_info = gameinfo end |
Instance Attribute Details
#game_info ⇒ Object (readonly)
Returns the value of attribute game_info.
34 35 36 |
# File 'lib/smagacor/smagacor-ui.rb', line 34 def game_info @game_info end |
Instance Method Details
#rtti ⇒ Object
41 42 43 |
# File 'lib/smagacor/smagacor-ui.rb', line 41 def rtti 1001 end |