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
<code/>and<pre/>for code samples.