Module: Lab42::DataClass::Proxy::Constraints::Maker
Instance Method Summary collapse
Instance Method Details
#make_constraint(constraint, &blk) ⇒ Object
11 12 13 14 15 |
# File 'lib/lab42/data_class/proxy/constraints/maker.rb', line 11 def make_constraint(constraint, &blk) raise ArgumentError, "must not pass a callable #{constraint} and a block" if constraint && blk _make_constraint(constraint || blk) end |