Class: Prism::ConstantReadNode
Instance Method Summary collapse
-
#full_name ⇒ Object
Returns the full name of this constant.
-
#full_name_parts ⇒ Object
Returns the list of parts for the full name of this constant.
Instance Method Details
#full_name ⇒ Object
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_parts ⇒ Object
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 |