Module: Noxy::Configuration

Extended by:
Configuration, Options
Included in:
Configuration
Defined in:
lib/noxy/configuration.rb

Constant Summary collapse

LOCK =
Mutex.new

Instance Method Summary collapse

Methods included from Options

defaults, option, settings

Instance Method Details

#options=(options) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/noxy/configuration.rb', line 15

def options=(options)

  # Mutex for future threaded env.
  LOCK.synchronize do
    if options
      options.each_pair do |option, value|
        send("#{option}=", value)
      end
    end
  end

end