Class: Prism::ConstantReadNode

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

Instance Method Summary collapse

Methods inherited from Node

#deprecated, #newline_flag!, #newline_flag?

Instance Method Details

#full_nameObject

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



139
140
141
# File 'lib/prism/node_ext.rb', line 139

def full_name
  name.to_s
end

#full_name_partsObject

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



134
135
136
# File 'lib/prism/node_ext.rb', line 134

def full_name_parts
  [name]
end