summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/lib/game_of_life/generators
diff options
context:
space:
mode:
Diffstat (limited to 'CLI/ruby/lib/game_of_life/generators')
-rw-r--r--CLI/ruby/lib/game_of_life/generators/input.rb2
-rw-r--r--CLI/ruby/lib/game_of_life/generators/seed.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/CLI/ruby/lib/game_of_life/generators/input.rb b/CLI/ruby/lib/game_of_life/generators/input.rb
index fbe3278..cb35786 100644
--- a/CLI/ruby/lib/game_of_life/generators/input.rb
+++ b/CLI/ruby/lib/game_of_life/generators/input.rb
@@ -54,7 +54,7 @@ module GameOfLife
(0...height).each do |i|
(0...width).each do |j|
cell = { x: j, y: i, alive: input.fetch(i, nil)&.fetch(j, nil) }
- universe[i][j] = ::GameOfLife::Cell.new(cell)
+ universe[i][j] = ::GameOfLife::Cell.new(**cell)
end
end
universe
diff --git a/CLI/ruby/lib/game_of_life/generators/seed.rb b/CLI/ruby/lib/game_of_life/generators/seed.rb
index d991efe..6399945 100644
--- a/CLI/ruby/lib/game_of_life/generators/seed.rb
+++ b/CLI/ruby/lib/game_of_life/generators/seed.rb
@@ -48,7 +48,7 @@ module GameOfLife
(0...height).each do |i|
(0...width).each do |j|
cell = { x: j, y: i, alive: input.fetch(i, nil)&.fetch(j, nil) }
- universe[i][j] = ::GameOfLife::Cell.new(cell)
+ universe[i][j] = ::GameOfLife::Cell.new(**cell)
end
end
universe