instance method
default
Ruby on Rails 5.0.7.2
Last seen in v5.0.7.2Signature
default(*args)
No documentation comment.
Parameters
-
argsrest
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 77
def default(*args)
arg_key = args.first
if include?(key = convert_key(arg_key))
self[key]
else
super
end
end
Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 77
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in HashWithIndifferentAccess