Class: RubyLsp::DetectionResult

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_lsp/global_state.rb

Overview

Holds the detected value and the reason for detection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, reason) ⇒ DetectionResult

: (String value, String reason) -> void



14
15
16
17
# File 'lib/ruby_lsp/global_state.rb', line 14

def initialize(value, reason)
  @value = value
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

: String



11
12
13
# File 'lib/ruby_lsp/global_state.rb', line 11

def reason
  @reason
end

#valueObject (readonly)

: String



8
9
10
# File 'lib/ruby_lsp/global_state.rb', line 8

def value
  @value
end