The settings of the current deployment are passed to Rubyrep through the Initializer::run method. This method yields a Configuration object for overwriting of the default settings. Accordingly a configuration file should look something like this:
Rubyrep::Initializer.run do |config| config.left = ... end
Returns the current Configuration object
# File lib/rubyrep/initializer.rb, line 23 def self.configuration @@configuration end
Allows direct overwriting of the Configuration
# File lib/rubyrep/initializer.rb, line 28 def self.configuration=(configuration) @@configuration = configuration end
Sets a new Configuration object Current configuration values are lost and replaced with the default settings.
# File lib/rubyrep/initializer.rb, line 17 def self.reset @@configuration = Configuration.new end
Yields the current Configuration object to enable overwriting of configuration values. Refer to the Initializer class documentation for a usage example.
# File lib/rubyrep/initializer.rb, line 35 def self.run yield configuration end
Generated with the Darkfish Rdoc Generator 2.