From 8436fb52f30718b595f8f39a88f063780f7deda9 Mon Sep 17 00:00:00 2001 From: a14m Date: Sun, 29 Nov 2020 17:38:29 +0100 Subject: Auto load the generators (to lazy load) only required generator --- CLI/ruby/lib/game_of_life.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3