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

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



5
6
7
# File 'lib/ruby-settings/configuration.rb', line 5

def configuration
  @configuration
end

Class Method Details

.configObject



7
8
9
# File 'lib/ruby-settings/configuration.rb', line 7

def config
  self.configuration ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

Yields:



11
12
13
# File 'lib/ruby-settings/configuration.rb', line 11

def configure
  yield config if block_given?
end