static public Method

HashWithIndifferentAccess.new(constructor = {})

There's no documentation for this item.

Source Code

# File active_support/core_ext/hash/indifferent_access.rb, line 5
def initialize(constructor = {})
  if constructor.is_a?(Hash)
    super()
    update(constructor)
  else
    super(constructor)
  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.