Module: Prism

Defined in:
lib/prism_ext.rb,
lib/prism_ext/parent_node_ext.rb

Defined Under Namespace

Modules: FullNameExt, HashNodeExt Classes: ClassNode, HashNode, KeywordHashNode, ModuleNode, Node

Class Method Summary collapse

Class Method Details

.original_parseObject



5
# File 'lib/prism_ext/parent_node_ext.rb', line 5

alias_method :original_parse, :parse

.parse(source) ⇒ Object



7
8
9
10
11
# File 'lib/prism_ext/parent_node_ext.rb', line 7

def parse(source)
  result = original_parse(source)
  result.value.set_parent_node
  result
end