class ActiveSupport::OrderedOptions

Public Instance Methods

[](key) click to toggle source
# File lib/active_support/ordered_options.rb, line 9
def [](key)
  super(key.to_sym)
end
[]=(key, value) click to toggle source
# File lib/active_support/ordered_options.rb, line 5
def []=(key, value)
  super(key.to_sym, value)
end
method_missing(name, *args) click to toggle source
# File lib/active_support/ordered_options.rb, line 13
def method_missing(name, *args)
  if name.to_s =~ %r(.*)=$/
    self[$1.to_sym] = args.first
  else
    self[name]
  end
end