Method: Contr::Base#check

Defined in:
lib/contr/base.rb

#check(*args) ⇒ Object



62
63
64
65
66
# File 'lib/contr/base.rb', line 62

def check(*args)
  result = yield
  Matcher::Sync.new(self, args, result).match
  result
end