summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/lib
diff options
context:
space:
mode:
authora14m <[email protected]>2020-11-29 17:38:29 +0100
committera14m <[email protected]>2020-11-29 17:38:29 +0100
commit8436fb52f30718b595f8f39a88f063780f7deda9 (patch)
treec2cac359254c952485820c98672871c47ae124c9 /CLI/ruby/lib
parentb1f4bdc35c5e9b47d40085c4e65ee403ab0195f9 (diff)
Auto load the generators (to lazy load) only required generator
Diffstat (limited to 'CLI/ruby/lib')
-rw-r--r--CLI/ruby/lib/game_of_life.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/CLI/ruby/lib/game_of_life.rb b/CLI/ruby/lib/game_of_life.rb
index 33bbb74..a50a50f 100644
--- a/CLI/ruby/lib/game_of_life.rb
+++ b/CLI/ruby/lib/game_of_life.rb
@@ -5,5 +5,9 @@ require "game_of_life/universe"
module GameOfLife
class Error < StandardError; end
- # Your code goes here...
+
+ module Generators
+ autoload :Input, "game_of_life/generators/input.rb"
+ autoload :Seed, "game_of_life/generators/seed.rb"
+ end
end