Class: Solargraph::Pin::ProxyType
- Defined in:
- lib/solargraph/pin/proxy_type.rb
Instance Attribute Summary
Attributes inherited from Base
#kind, #location, #name, #namespace
Class Method Summary collapse
Instance Method Summary collapse
- #context ⇒ Object
-
#initialize(location, namespace, name, return_type) ⇒ ProxyType
constructor
A new instance of ProxyType.
- #path ⇒ Object
Methods inherited from Base
#==, #comments, #completion_item_kind, #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
Methods included from Conversions
#completion_item, #detail, #link_documentation, #reset_conversions, #resolve_completion_item, #signature_help
Constructor Details
#initialize(location, namespace, name, return_type) ⇒ ProxyType
Returns a new instance of ProxyType.
8 9 10 11 |
# File 'lib/solargraph/pin/proxy_type.rb', line 8 def initialize location, namespace, name, return_type super(location, namespace, name, '') @return_complex_type = return_type end |
Class Method Details
Instance Method Details
#context ⇒ Object
21 22 23 |
# File 'lib/solargraph/pin/proxy_type.rb', line 21 def context @return_complex_type end |
#path ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/solargraph/pin/proxy_type.rb', line 13 def path @path ||= begin result = namespace.to_s result += '::' unless result.empty? or name.to_s.empty? result += name.to_s end end |