Class: ShowLastGenerationAction
- Inherits:
-
ShowFutureGenerationAction
- Object
- AbstractAction
- MoveAction
- ShowFutureGenerationAction
- ShowLastGenerationAction
- Defined in:
- lib/life_game_viewer/view/actions.rb
Instance Method Summary collapse
- #caption ⇒ Object
-
#initialize(table_model) ⇒ ShowLastGenerationAction
constructor
A new instance of ShowLastGenerationAction.
- #move ⇒ Object
Methods inherited from ShowFutureGenerationAction
Methods inherited from MoveAction
Constructor Details
#initialize(table_model) ⇒ ShowLastGenerationAction
Returns a new instance of ShowLastGenerationAction.
132 133 134 |
# File 'lib/life_game_viewer/view/actions.rb', line 132 def initialize(table_model) super(table_model) end |
Instance Method Details
#caption ⇒ Object
140 141 142 |
# File 'lib/life_game_viewer/view/actions.rb', line 140 def caption "Last (0)" end |
#move ⇒ Object
136 137 138 |
# File 'lib/life_game_viewer/view/actions.rb', line 136 def move @table_model.go_to_last_generation end |