From 4b930fb67b9e36f8aef987a9df363b0fe29af963 Mon Sep 17 00:00:00 2001 From: Bill Nibz Date: Sat, 14 Oct 2017 15:15:54 -0400 Subject: [PATCH] Sapling: Dynamic local requires --- sapling.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sapling.rb b/sapling.rb index 254b35e..5e3c9ae 100644 --- a/sapling.rb +++ b/sapling.rb @@ -3,10 +3,7 @@ require 'optparse' require 'yaml' -require_relative 'sapling/dialogue' -require_relative 'sapling/gardner' -require_relative 'sapling/planter' -require_relative 'sapling/utility' +Dir[File.join(__dir__, 'lib', '*.rb')].each { |file| require file } # Sapling is the main module for the program. From here, the rest of the world # starts building.