method
hash_from_body
v7.1.3.4 -
Show latest stable
- Class:
ActionView::RenderParser::RipperASTParser::Node
hash_from_body(body)public
No documentation available.
# File actionview/lib/action_view/ripper_ast_parser.rb, line 88
def hash_from_body(body)
body.to_h do |hash_node|
return nil if hash_node.type != :assoc_new
[hash_node[0], hash_node[1]]
end
end