method

hash_from_body

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Node
hash_from_body(body) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.