Class: Ibex::GrammarTests::Result
- Inherits:
-
Struct
- Object
- Struct
- Ibex::GrammarTests::Result
- Defined in:
- lib/ibex/grammar_tests.rb,
lib/ibex/grammar_tests.rb,
sig/ibex/grammar_tests.rbs,
sig/ibex/grammar_tests.rbs
Instance Attribute Summary collapse
-
#actual ⇒ Object
Returns the value of attribute actual.
-
#error_class ⇒ Object
Returns the value of attribute error_class.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#expectation ⇒ Object
Returns the value of attribute expectation.
-
#location ⇒ Object
Returns the value of attribute location.
-
#production_ids ⇒ Object
Returns the value of attribute production_ids.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#actual ⇒ Object
Returns the value of attribute actual
15 16 17 |
# File 'lib/ibex/grammar_tests.rb', line 15 def actual @actual end |
#error_class ⇒ Object
Returns the value of attribute error_class
15 16 17 |
# File 'lib/ibex/grammar_tests.rb', line 15 def error_class @error_class end |
#error_message ⇒ Object
Returns the value of attribute error_message
15 16 17 |
# File 'lib/ibex/grammar_tests.rb', line 15 def @error_message end |
#expectation ⇒ Object
Returns the value of attribute expectation
15 16 17 |
# File 'lib/ibex/grammar_tests.rb', line 15 def expectation @expectation end |
#location ⇒ Object
Returns the value of attribute location
15 16 17 |
# File 'lib/ibex/grammar_tests.rb', line 15 def location @location end |
#production_ids ⇒ Object
Returns the value of attribute production_ids
15 16 17 |
# File 'lib/ibex/grammar_tests.rb', line 15 def production_ids @production_ids end |
Class Method Details
.new(expectation:, actual:, error_class:, error_message:, location:, production_ids:) ⇒ instance .new(arg0) ⇒ instance
23 24 |
# File 'sig/ibex/grammar_tests.rbs', line 23
def self.new: (?expectation: Symbol, ?actual: Symbol, ?error_class: String?, ?error_message: String?, ?location: IR::location, ?production_ids: Array[Integer]) -> instance
| ({ ?expectation: Symbol, ?actual: Symbol, ?error_class: String?, ?error_message: String?, ?location: IR::location, ?production_ids: Array[Integer] }) -> instance
|
Instance Method Details
#passed? ⇒ Boolean
27 |
# File 'lib/ibex/grammar_tests.rb', line 27 def passed? = expectation == actual |