class Falcon::Configuration::Loader
def load(*features)
Falcon provides default environments for different purposes. These are included in the gem, in the `environments/` directory. This method loads the code in those files into the current configuration.
Load specific features into the current configuration.
def load(*features) features.each do |feature| next if @loaded.include?(feature) case feature when Symbol relative_path = File.join(__dir__, "environments", "#{feature}.rb") self.instance_eval(File.read(relative_path), relative_path) @loaded[feature] = relative_path when Module feature.load(self) @loaded[feature] = feature else raise LoadError, "Unsure about how to load #{feature}!" end end end