Class: Rubydex::Diagnostic
- Inherits:
-
Object
- Object
- Rubydex::Diagnostic
- Defined in:
- lib/rubydex/diagnostic.rb,
ext/rubydex/diagnostic.c
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
: Location.
-
#message ⇒ Object
readonly
: String.
-
#rule ⇒ Object
readonly
: Symbol.
Instance Method Summary collapse
-
#initialize(rule:, message:, location:) ⇒ Diagnostic
constructor
: (rule: Symbol, message: String, location: Location) -> void.
Constructor Details
#initialize(rule:, message:, location:) ⇒ Diagnostic
: (rule: Symbol, message: String, location: Location) -> void
15 16 17 18 19 |
# File 'lib/rubydex/diagnostic.rb', line 15 def initialize(rule:, message:, location:) @rule = rule @message = @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
: Location
12 13 14 |
# File 'lib/rubydex/diagnostic.rb', line 12 def location @location end |
#message ⇒ Object (readonly)
: String
9 10 11 |
# File 'lib/rubydex/diagnostic.rb', line 9 def @message end |
#rule ⇒ Object (readonly)
: Symbol
6 7 8 |
# File 'lib/rubydex/diagnostic.rb', line 6 def rule @rule end |