Class: Solargraph::Pin::Reference::Override
- Inherits:
-
Reference
- Object
- 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
Class Method Summary collapse
- .from_comment(name, comment, **splat) ⇒ Solargraph::Pin::Reference::Override
- .method_return(name, *tags, delete: [], **splat) ⇒ Solargraph::Pin::Reference::Override
Instance Method Summary collapse
- #closure ⇒ Object
-
#initialize(location, name, tags, delete = [], **splat) ⇒ Override
constructor
A new instance of Override.
Constructor Details
#initialize(location, name, tags, delete = [], **splat) ⇒ Override
Returns a new instance of Override.
22 23 24 25 26 |
# File 'lib/solargraph/pin/reference/override.rb', line 22 def initialize location, name, , delete = [], **splat super(location: location, name: name, **splat) @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, **splat) ⇒ Solargraph::Pin::Reference::Override
41 42 43 |
# File 'lib/solargraph/pin/reference/override.rb', line 41 def self.from_comment name, comment, **splat new(nil, name, Solargraph::Source.parse_docstring(comment).to_docstring., **splat) end |
.method_return(name, *tags, delete: [], **splat) ⇒ Solargraph::Pin::Reference::Override
33 34 35 |
# File 'lib/solargraph/pin/reference/override.rb', line 33 def self.method_return name, *, delete: [], **splat new(nil, name, [YARD::Tags::Tag.new('return', '', )], delete, **splat) end |
Instance Method Details
#closure ⇒ Object
13 14 15 |
# File 'lib/solargraph/pin/reference/override.rb', line 13 def closure nil end |