Source: show | on GitHub
# File activesupport/lib/active_support/ordered_options.rb, line 28 28: def [](key) 29: super(key.to_sym) 30: end
# File activesupport/lib/active_support/ordered_options.rb, line 24 24: def []=(key, value) 25: super(key.to_sym, value) 26: end
Alias for #[]
# File activesupport/lib/active_support/ordered_options.rb, line 32 32: def method_missing(name, *args) 33: if name.to_s =~ /(.*)=$/ 34: self[$1] = args.first 35: else 36: self[name] 37: end 38: end
# File activesupport/lib/active_support/ordered_options.rb, line 40 40: def respond_to?(name) 41: true 42: end