method
to_hash
v8.0.0 -
Show latest stable
- Class:
ActionView::RenderParser::RipperRenderParser::Node
to_hash()public
No documentation available.
# File actionview/lib/action_view/render_parser/ripper_render_parser.rb, line 85
def to_hash
if type == :bare_assoc_hash
hash_from_body(self[0])
elsif type == :hash && self[0] == nil
{}
elsif type == :hash && self[0].type == :assoclist_from_args
hash_from_body(self[0][0])
end
end