Exception: Varar::Core::DocStringMismatchError
- Inherits:
-
StandardError
- Object
- StandardError
- Varar::Core::DocStringMismatchError
- Defined in:
- lib/varar/core/doc_string_diff.rb
Overview
Raised when a doc-string step's returned string differs from the content.
Instance Attribute Summary collapse
-
#diff ⇒ Object
readonly
Returns the value of attribute diff.
Instance Method Summary collapse
-
#initialize(diff) ⇒ DocStringMismatchError
constructor
A new instance of DocStringMismatchError.
Constructor Details
#initialize(diff) ⇒ DocStringMismatchError
Returns a new instance of DocStringMismatchError.
14 15 16 17 |
# File 'lib/varar/core/doc_string_diff.rb', line 14 def initialize(diff) @diff = diff super("doc string: expected #{diff.expected.inspect} but was #{diff.actual.inspect}") end |
Instance Attribute Details
#diff ⇒ Object (readonly)
Returns the value of attribute diff.
12 13 14 |
# File 'lib/varar/core/doc_string_diff.rb', line 12 def diff @diff end |