Module: RubySettings
- Defined in:
- lib/ruby-settings/extend.rb,
lib/ruby-settings/settings.rb,
lib/ruby-settings/configuration.rb,
lib/ruby-settings/cached_settings.rb,
lib/ruby-settings/scoped_settings.rb
Defined Under Namespace
Modules: ConfigurationHelpers, Extend Classes: CachedSettings, Configuration, ScopedSettings, Settings
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
5 6 7 |
# File 'lib/ruby-settings/configuration.rb', line 5 def configuration @configuration end |
Class Method Details
.config ⇒ Object
7 8 9 |
# File 'lib/ruby-settings/configuration.rb', line 7 def config self.configuration ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
11 12 13 |
# File 'lib/ruby-settings/configuration.rb', line 11 def configure yield config if block_given? end |