public Method

HashWithIndifferentAccess.default(key = nil)

There's no documentation for this item.

Source Code

# File active_support/core_ext/hash/indifferent_access.rb, line 14
def default(key = nil)
  if key.is_a?(Symbol) && include?(key = key.to_s)
    self[key]
  else
    super
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.