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.
8 9 10 11 |
# File 'lib/cfoundry/errors.rb', line 8 def initialize(expected, got) @expected = expected @got = got end |
Instance Method Details
#to_s ⇒ Object
13 14 15 |
# File 'lib/cfoundry/errors.rb', line 13 def to_s "Invalid value type; expected #{@expected.inspect}, got #{@got.inspect}" end |