Class: Prism::ConstantTargetNode
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”
262 263 264 |
# File 'lib/prism/node_ext.rb', line 262 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]
257 258 259 |
# File 'lib/prism/node_ext.rb', line 257 def full_name_parts [name] end |