Module: Prism::FullNameExt

Included in:
ClassNode, ModuleNode
Defined in:
lib/prism_ext.rb

Instance Method Summary collapse

Instance Method Details

#full_nameObject



15
16
17
18
19
20
21
# File 'lib/prism_ext.rb', line 15

def full_name
  if parent_node&.parent_node&.respond_to?(:full_name)
    "#{parent_node.parent_node.full_name}::#{constant_path.to_source}"
  else
    constant_path.to_source
  end
end