Class: Prism::ConstantWriteNode
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”
152 153 154 |
# File 'lib/prism/node_ext.rb', line 152 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]
147 148 149 |
# File 'lib/prism/node_ext.rb', line 147 def full_name_parts [name] end |