Exception: Easytest::MatchError
- Defined in:
- lib/easytest/errors.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
Instance Method Summary collapse
-
#initialize(message:, actual:, expected:) ⇒ MatchError
constructor
A new instance of MatchError.
Constructor Details
#initialize(message:, actual:, expected:) ⇒ MatchError
Returns a new instance of MatchError.
10 11 12 13 14 |
# File 'lib/easytest/errors.rb', line 10 def initialize(message:, actual:, expected:) super() @actual = actual @expected = expected end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
7 8 9 |
# File 'lib/easytest/errors.rb', line 7 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
8 9 10 |
# File 'lib/easytest/errors.rb', line 8 def expected @expected end |