Class: Solargraph::Pin::YardPin::Namespace

Inherits:
Namespace show all
Includes:
YardMixin
Defined in:
lib/solargraph/pin/yard_pin/namespace.rb

Instance Attribute Summary

Attributes inherited from Namespace

#type, #visibility

Attributes inherited from Base

#kind, #location, #name, #namespace, #path

Instance Method Summary collapse

Methods inherited from Namespace

#completion_item_kind, #context, #domains, #infer, #kind, #path, #return_complex_type, #scope, #symbol_kind

Methods inherited from Base

#==, #comments, #completion_item_kind, #context, #deprecated?, #directives, #docstring, #filename, #infer, #macros, #maybe_directives?, #nearly?, #return_complex_type, #return_type, #symbol_kind, #to_s, #try_merge!, #variable?

Methods included from Documenting

#documentation

Methods included from Conversions

#completion_item, #detail, #link_documentation, #reset_conversions, #resolve_completion_item, #signature_help

Constructor Details

#initialize(code_object, location) ⇒ Namespace

Returns a new instance of Namespace.



7
8
9
# File 'lib/solargraph/pin/yard_pin/namespace.rb', line 7

def initialize code_object, location
  super(location, code_object.namespace.to_s, code_object.name.to_s, comments_from(code_object), namespace_type(code_object), code_object.visibility)
end