module Iba::BlockAssertion
Public Instance Methods
assert(*args) { || ... }
click to toggle source
Calls superclass method
# File lib/iba.rb, line 210 def assert *args if block_given? if yield assert_block('true') { true } else msg = args.empty? ? '' : "#{args.first}.\n" ana = Combinator.new(&Proc.new).analyse assert_block("#{msg}#{ana}.") { false } end else test, msg = *args super test, msg end end