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
59
60
61
|
# File 'lib/language_server/project/node.rb', line 59
def full_name
names.join('::')
end
|
#names ⇒ Object
55
56
57
|
# File 'lib/language_server/project/node.rb', line 55
def names
namespaces.flat_map(&:names) + [name]
end
|
#unshift_namespace(class_or_module) ⇒ Object
51
52
53
|
# File 'lib/language_server/project/node.rb', line 51
def unshift_namespace(class_or_module)
namespaces.unshift(class_or_module)
end
|