Class: ShowNextGenerationAction

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) ⇒ ShowNextGenerationAction

Returns a new instance of ShowNextGenerationAction.



114
115
116
# File 'lib/life_game_viewer/view/actions.rb', line 114

def initialize(table_model)
  super(table_model)
end

Instance Method Details

#captionObject



122
123
124
# File 'lib/life_game_viewer/view/actions.rb', line 122

def caption
  "Next (7)"
end

#moveObject



118
119
120
# File 'lib/life_game_viewer/view/actions.rb', line 118

def move
  @table_model.go_to_next_generation
end