Class: LanguageServer::Project::Module

Inherits:
Node
  • Object
show all
Defined in:
lib/language_server/project/node.rb

Direct Known Subclasses

Class

Instance Method Summary collapse

Methods inherited from Node

#==, attribute_names, attributes, #attributes, #eql?, #hash, #local_path, #remote_path

Instance Method Details

#inspectObject



83
84
85
# File 'lib/language_server/project/node.rb', line 83

def inspect
  "<Module #{full_name}#L#{lines.begin}-#{lines.end}>"
end

#linesObject



79
80
81
# File 'lib/language_server/project/node.rb', line 79

def lines
  constant.lineno..lineno
end

#unshift_namespace(class_or_module) ⇒ Object



75
76
77
# File 'lib/language_server/project/node.rb', line 75

def unshift_namespace(class_or_module)
  constant.unshift_namespace(class_or_module)
end