private Method

UrlEncodedPairParser.container(key, klass)

Add a container to the stack.

Source Code

# File action_controller/request.rb, line 656
def container(key, klass)
  type_conflict! klass, top[key] if top.is_a?(Hash) && top.key?(key) && ! top[key].is_a?(klass)
  value = bind(key, klass.new)
  type_conflict! klass, value unless value.is_a?(klass)
  push(value)
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.