Exception: CFoundry::Mismatch
- Defined in:
- lib/cfoundry/errors.rb
Instance Method Summary collapse
-
#initialize(expected, got) ⇒ Mismatch
constructor
A new instance of Mismatch.
- #to_s ⇒ Object
Constructor Details
#initialize(expected, got) ⇒ Mismatch
Returns a new instance of Mismatch.
14 15 16 17 |
# File 'lib/cfoundry/errors.rb', line 14 def initialize(expected, got) @expected = expected @got = got end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/cfoundry/errors.rb', line 19 def to_s "Invalid value type; expected #{@expected.inspect}, got #{@got.inspect}" end |