Class: RubyLsp::Requests::Support::HighlightTarget::HighlightMatch

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/ruby_lsp/requests/support/highlight_target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nodeObject (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

#typeObject (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