Class: RubyLsp::Requests::Support::HighlightTarget::HighlightMatch
- Inherits:
-
Object
- Object
- RubyLsp::Requests::Support::HighlightTarget::HighlightMatch
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_lsp/requests/support/highlight_target.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, location:) ⇒ HighlightMatch
constructor
A new instance of HighlightMatch.
Constructor Details
#initialize(type:, location:) ⇒ HighlightMatch
Returns a new instance of HighlightMatch.
23 24 25 26 |
# File 'lib/ruby_lsp/requests/support/highlight_target.rb', line 23 def initialize(type:, location:) @type = type @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
20 21 22 |
# File 'lib/ruby_lsp/requests/support/highlight_target.rb', line 20 def location @location end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
17 18 19 |
# File 'lib/ruby_lsp/requests/support/highlight_target.rb', line 17 def type @type end |