Method: Allorails::Core::Configuration#initialize

Defined in:
lib/allorails/core.rb

#initialize(options = {}) ⇒ Configuration

creates a new Configuration object

Parameters:

  • options (defaults to: {})

Options Hash (options):

  • (Object)


14
15
16
17
18
19
20
21
# File 'lib/allorails/core.rb', line 14

def initialize options = {}
  options.each_pair do |opt_name, value|
    opt_name = opt_name.to_sym
    if self.class.accepted_options.include?(opt_name)
      supplied[opt_name] = value
    end
  end
end