Class: Prism::ConstantTargetNode

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”



262
263
264
# File 'lib/prism/node_ext.rb', line 262

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]



257
258
259
# File 'lib/prism/node_ext.rb', line 257

def full_name_parts
  [name]
end