Module: DHC::ConfigurationConcern::ClassMethods

Defined in:
lib/dhc/concerns/dhc/configuration_concern.rb

Instance Method Summary collapse

Instance Method Details

#configObject



10
11
12
# File 'lib/dhc/concerns/dhc/configuration_concern.rb', line 10

def config
  DHC::Config.instance
end

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

Yields:



14
15
16
17
# File 'lib/dhc/concerns/dhc/configuration_concern.rb', line 14

def configure
  DHC::Config.instance.reset
  yield config
end