Class: Solargraph::TypeChecker::Problem
- Inherits:
-
Object
- Object
- Solargraph::TypeChecker::Problem
- Defined in:
- lib/solargraph/type_checker/problem.rb
Overview
A problem reported by TypeChecker.
Instance Attribute Summary collapse
- #location ⇒ Solargraph::Location readonly
- #message ⇒ String readonly
- #pin ⇒ Pin::Base readonly
- #suggestion ⇒ String? readonly
Instance Method Summary collapse
-
#initialize(location, message, pin: nil, suggestion: nil) ⇒ Problem
constructor
A new instance of Problem.
Constructor Details
#initialize(location, message, pin: nil, suggestion: nil) ⇒ Problem
Returns a new instance of Problem.
26 27 28 29 30 31 |
# File 'lib/solargraph/type_checker/problem.rb', line 26 def initialize location, , pin: nil, suggestion: nil @location = location @message = @pin = pin @suggestion = suggestion end |
Instance Attribute Details
#location ⇒ Solargraph::Location (readonly)
TODO:
Missed nil violation
10 11 12 |
# File 'lib/solargraph/type_checker/problem.rb', line 10 def location @location end |
#message ⇒ String (readonly)
13 14 15 |
# File 'lib/solargraph/type_checker/problem.rb', line 13 def @message end |
#pin ⇒ Pin::Base (readonly)
TODO:
Missed nil violation
17 18 19 |
# File 'lib/solargraph/type_checker/problem.rb', line 17 def pin @pin end |
#suggestion ⇒ String? (readonly)
20 21 22 |
# File 'lib/solargraph/type_checker/problem.rb', line 20 def suggestion @suggestion end |