instance method
method_missing
Ruby on Rails 4.1.16
Since v3.0.20Signature
method_missing(name, *args)
No documentation comment.
Parameters
-
namereq -
argsrest
Source
# File activesupport/lib/active_support/ordered_options.rb, line 29
def method_missing(name, *args)
name_string = name.to_s
if name_string.chomp!('=')
self[name_string] = args.first
else
self[name]
end
end
Defined in activesupport/lib/active_support/ordered_options.rb line 29
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::OrderedOptions