Class: Lifelike::Runner
- Inherits:
-
Object
- Object
- Lifelike::Runner
- Defined in:
- lib/lifelike/runner.rb
Instance Method Summary collapse
-
#initialize(initial_world_string, rule_string:, generations:) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(initial_world_string, rule_string:, generations:) ⇒ Runner
Returns a new instance of Runner.
3 4 5 6 7 |
# File 'lib/lifelike/runner.rb', line 3 def initialize(initial_world_string, rule_string:, generations:) @initial_world_string = initial_world_string @rule_string = rule_string @generations = generations end |
Instance Method Details
#run ⇒ Object
9 10 11 |
# File 'lib/lifelike/runner.rb', line 9 def run final_world_string end |