Class: Prism::ConstantReadNode

Inherits:
Node
  • Object
show all
Defined in:
lib/prism/node_ext.rb

Instance Method Summary collapse

Instance Method Details

#full_nameObject

Returns the full name of this constant. For example: “Foo”



96
97
98
# File 'lib/prism/node_ext.rb', line 96

def full_name
  name.name
end

#full_name_partsObject

Returns the list of parts for the full name of this constant. For example: [:Foo]



91
92
93
# File 'lib/prism/node_ext.rb', line 91

def full_name_parts
  [name]
end