Method: Handshake::MethodContract#check_pre!
- Defined in:
- lib/handshake.rb
#check_pre!(o, *args) ⇒ Object
Checks the preconditions of this contract against the given object and arugment values. Any assertions thrown are re-raised as Handshake::AssertionFailed errors.
426 427 428 |
# File 'lib/handshake.rb', line 426 def check_pre!(o, *args) check_conditions!(o, args, @preconditions) end |