Class: Solargraph::Pin::Reference::Override
- Inherits:
-
Solargraph::Pin::Reference
- Object
- Base
- Solargraph::Pin::Reference
- Solargraph::Pin::Reference::Override
- Defined in:
- lib/solargraph/pin/reference/override.rb
Instance Attribute Summary collapse
- #delete ⇒ Array<Symbol> readonly
- #tags ⇒ Array<YARD::Tags::Tag> readonly
Attributes inherited from Base
#code_object, #location, #name, #path, #return_type, #source
Attributes included from Common
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(location, name, tags, delete = []) ⇒ Override
constructor
A new instance of Override.
Methods inherited from Base
#==, #comments, #completion_item_kind, #deprecated?, #directives, #docstring, #filename, #identity, #infer, #inspect, #macros, #maybe_directives?, #nearly?, #probe, #probed?, #proxied?, #proxy, #realize, #symbol_kind, #to_s, #try_merge!, #typify, #variable?
Methods included from Documenting
Methods included from Conversions
#completion_item, #detail, #link_documentation, #reset_conversions, #resolve_completion_item, #signature_help, #text_documentation
Methods included from Common
#binder, #comments, #context, #name, #namespace, #path, #return_type
Constructor Details
#initialize(location, name, tags, delete = []) ⇒ Override
Returns a new instance of Override.
13 14 15 16 17 |
# File 'lib/solargraph/pin/reference/override.rb', line 13 def initialize location, name, , delete = [] super(location: location, name: name) @tags = @delete = delete end |
Instance Attribute Details
#delete ⇒ Array<Symbol> (readonly)
11 12 13 |
# File 'lib/solargraph/pin/reference/override.rb', line 11 def delete @delete end |
#tags ⇒ Array<YARD::Tags::Tag> (readonly)
8 9 10 |
# File 'lib/solargraph/pin/reference/override.rb', line 8 def @tags end |
Class Method Details
.from_comment(name, comment) ⇒ Object
23 24 25 |
# File 'lib/solargraph/pin/reference/override.rb', line 23 def self.from_comment name, comment new(nil, name, Solargraph::Source.parse_docstring(comment).to_docstring.) end |
.method_return(name, *tags, delete: []) ⇒ Object
19 20 21 |
# File 'lib/solargraph/pin/reference/override.rb', line 19 def self.method_return name, *, delete: [] new(nil, name, [YARD::Tags::Tag.new('return', nil, )], delete) end |