Method: Handshake::MethodContract#check_post!
- Defined in:
- lib/handshake.rb
#check_post!(o, *args) ⇒ Object
Checks the postconditions of this contract against the given object and return values. Any assertions thrown are re-raised as Handshake::AssertionViolation errors.
419 420 421 |
# File 'lib/handshake.rb', line 419 def check_post!(o, *args) check_conditions!(o, args, @postconditions) end |