Skip to Content Skip to Search
Methods
F

Instance Public methods

full_name()

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

# File ruby/lib/prism/node_ext.rb, line 142
def full_name
  full_name_parts.join("::")
end

full_name_parts()

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

# File ruby/lib/prism/node_ext.rb, line 137
def full_name_parts
  (parent&.full_name_parts || [:""]).push(child.name)
end