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.
24 25 26 27 28 29 |
# File 'lib/solargraph/type_checker/problem.rb', line 24 def initialize location, , pin: nil, suggestion: nil @location = location @message = @pin = pin @suggestion = suggestion end |
Instance Attribute Details
#location ⇒ Solargraph::Location (readonly)
9 10 11 |
# File 'lib/solargraph/type_checker/problem.rb', line 9 def location @location end |
#message ⇒ String (readonly)
12 13 14 |
# File 'lib/solargraph/type_checker/problem.rb', line 12 def @message end |
#pin ⇒ Pin::Base (readonly)
15 16 17 |
# File 'lib/solargraph/type_checker/problem.rb', line 15 def pin @pin end |
#suggestion ⇒ String? (readonly)
18 19 20 |
# File 'lib/solargraph/type_checker/problem.rb', line 18 def suggestion @suggestion end |