Class: RubyLsp::DetectionResult
- Inherits:
-
Object
- Object
- RubyLsp::DetectionResult
- Defined in:
- lib/ruby_lsp/global_state.rb
Overview
Holds the detected value and the reason for detection
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
: String.
-
#value ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#initialize(value, reason) ⇒ DetectionResult
constructor
: (String value, String reason) -> void.
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
#reason ⇒ Object (readonly)
: String
11 12 13 |
# File 'lib/ruby_lsp/global_state.rb', line 11 def reason @reason end |
#value ⇒ Object (readonly)
: String
8 9 10 |
# File 'lib/ruby_lsp/global_state.rb', line 8 def value @value end |