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.
Methods inherited from Node
#deprecated, #newline_flag!, #newline_flag?
Instance Method Details
#full_name ⇒ Object
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_parts ⇒ Object
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 |