Class: LanguageServer::Project::Constant
- Inherits:
-
Node
- Object
- Node
- LanguageServer::Project::Constant
show all
- Defined in:
- lib/language_server/project/node.rb
Instance Method Summary
collapse
Methods inherited from Node
#==, attribute_names, attributes, #attributes, #eql?, #hash, #local_path, #remote_path
Instance Method Details
#full_name ⇒ Object
62
63
64
|
# File 'lib/language_server/project/node.rb', line 62
def full_name
names.join("::")
end
|
#names ⇒ Object
58
59
60
|
# File 'lib/language_server/project/node.rb', line 58
def names
namespaces.flat_map(&:names) + [name]
end
|
#unshift_namespace(class_or_module) ⇒ Object
54
55
56
|
# File 'lib/language_server/project/node.rb', line 54
def unshift_namespace(class_or_module)
namespaces.unshift(class_or_module)
end
|