Module: Manacle::Constraint::Method
- Defined in:
- lib/manacle/constraint/method.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 |
# File 'lib/manacle/constraint/method.rb', line 6 def self.included(base) base.instance_eval do include Manacle::Constraint end end |
Instance Method Details
#base_constrain(val) ⇒ Object
12 13 14 |
# File 'lib/manacle/constraint/method.rb', line 12 def base_constrain(val) val.method(constraint).call end |