Exception: Oselvar::Var::Core::DocStringMismatchError
- Inherits:
-
StandardError
- Object
- StandardError
- Oselvar::Var::Core::DocStringMismatchError
- Defined in:
- lib/oselvar/var/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.
15 16 17 18 |
# File 'lib/oselvar/var/core/doc_string_diff.rb', line 15 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.
13 14 15 |
# File 'lib/oselvar/var/core/doc_string_diff.rb', line 13 def diff @diff end |