123456789_123456789_123456789_123456789_123456789_

Class: Prism::ConstantWriteNode

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Node
Instance Chain:
self, Node
Inherits: Prism::Node
Defined in: lib/prism/node_ext.rb

Instance Attribute Summary

Node - Inherited

Instance Method Summary

Node - Inherited

Instance Method Details

#full_name

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

[ GitHub ]

  
# File 'lib/prism/node_ext.rb', line 152

def full_name
  name.to_s
end

#full_name_parts

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

[ GitHub ]

  
# File 'lib/prism/node_ext.rb', line 147

def full_name_parts
  [name]
end