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
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, node:) ⇒ HighlightMatch
constructor
A new instance of HighlightMatch.
Constructor Details
#initialize(type:, node:) ⇒ 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:, node:) @type = type @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
20 21 22 |
# File 'lib/ruby_lsp/requests/support/highlight_target.rb', line 20 def node @node 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 |