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.
-
#related_information ⇒ Object
readonly
: Array.
-
#rule ⇒ Object
readonly
: singleton(Rule).
Instance Method Summary collapse
-
#initialize(rule:, message:, location:, related_information: []) ⇒ Diagnostic
constructor
: ( | rule: singleton(Rule), | message: String, | location: Location, | ?related_information: Array, | ) -> void.
Constructor Details
#initialize(rule:, message:, location:, related_information: []) ⇒ Diagnostic
: ( | rule: singleton(Rule), | message: String, | location: Location, | ?related_information: Array, | ) -> void
23 24 25 26 27 28 |
# File 'lib/rubydex/diagnostic.rb', line 23 def initialize(rule:, message:, location:, related_information: []) @rule = rule = @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 end |
#related_information ⇒ Object (readonly)
: Array
15 16 17 |
# File 'lib/rubydex/diagnostic.rb', line 15 def end |
#rule ⇒ Object (readonly)
: singleton(Rule)
6 7 8 |
# File 'lib/rubydex/diagnostic.rb', line 6 def rule @rule end |