Class: ShowLastGenerationAction

Inherits:
ShowFutureGenerationAction show all
Defined in:
lib/life_game_viewer/view/actions.rb

Instance Method Summary collapse

Methods inherited from ShowFutureGenerationAction

#should_be_enabled?

Methods inherited from MoveAction

#actionPerformed

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

#captionObject



140
141
142
# File 'lib/life_game_viewer/view/actions.rb', line 140

def caption
  "Last (0)"
end

#moveObject



136
137
138
# File 'lib/life_game_viewer/view/actions.rb', line 136

def move
  @table_model.go_to_last_generation
end