Method: Arrow::Config#initialize

Defined in:
lib/arrow/config.rb

#initialize(confighash = {}) ⇒ Config

Create a new Arrow::Config object. Values passed in via the confighash will be used instead of the defaults.



199
200
201
202
203
204
205
206
207
208
209
# File 'lib/arrow/config.rb', line 199

def initialize( confighash={} )
  ihash = internify_keys( untaint_values(confighash) )
  mergedhash = DEFAULTS.merge( ihash, &HashMergeFunction )

  @struct      = ConfigStruct.new( mergedhash )
  @create_time = Time.now
  @name        = nil
  @loader      = nil

  super()
end