module Safrano::Contract::Invalid
All tap_valid
* handlers are not executed
tap_error* handlers are executed
Public Instance Methods
collect_result!()
click to toggle source
# File lib/safrano/contract.rb, line 44 def collect_result! self # allow chaining end
error()
click to toggle source
# File lib/safrano/contract.rb, line 48 def error self end
if_error() { |self| ... }
click to toggle source
# File lib/safrano/contract.rb, line 32 def if_error yield self ## return this end
if_valid()
click to toggle source
# File lib/safrano/contract.rb, line 28 def if_valid self end
if_valid_collect()
click to toggle source
# File lib/safrano/contract.rb, line 36 def if_valid_collect self end
map_result!()
click to toggle source
# File lib/safrano/contract.rb, line 40 def map_result! self # allow chaining end
result()
click to toggle source
# File lib/safrano/contract.rb, line 52 def result nil end
tap_error() { |self| ... }
click to toggle source
# File lib/safrano/contract.rb, line 19 def tap_error yield self self # allow chaining end
tap_valid()
click to toggle source
# File lib/safrano/contract.rb, line 24 def tap_valid self # allow chaining end