Class: ShowFutureGenerationAction

Inherits:
MoveAction
  • Object
show all
Defined in:
lib/life_game_viewer/view/actions.rb

Instance Method Summary collapse

Methods inherited from MoveAction

#actionPerformed

Constructor Details

#initialize(table_model) ⇒ ShowFutureGenerationAction

Returns a new instance of ShowFutureGenerationAction.



100
101
102
# File 'lib/life_game_viewer/view/actions.rb', line 100

def initialize(table_model)
  super(table_model)  # caption implemented by subclasses
end

Instance Method Details

#should_be_enabled?Boolean

Returns:

  • (Boolean)


104
105
106
# File 'lib/life_game_viewer/view/actions.rb', line 104

def should_be_enabled?
  ! @table_model.at_last_generation?
end