Method: Contract.contract

Defined in:
lib/contract.rb

.contractObject

Returns the value of the block if all verifications pass



9
10
11
12
13
# File 'lib/contract.rb', line 9

def contract
  catch(:contract) do
    yield
  end
end