lib/validation/condition.rb
def _logical_operator(delegated, *conditions)
      unless conditions.all?{|c|conditionable? c}
        raise TypeError, 'wrong object for condition'
      end

      ->v{
        conditions.__send__(delegated) {|condition|
          _valid? condition, v
        }
      }
    end
def _logical_operator(delegated, *conditions)
      unless conditions.all?{|c|conditionable? c}
        raise TypeError, 'wrong object for condition'
      end

      ->v{
        conditions.__send__(delegated) {|condition|
          _valid? condition, v
        }
      }
    end
def _logical_operator ( delegated , * conditions ) unless conditions . all? { | c | conditionable? c } raise TypeError , 'wrong object for condition' end -> v { conditions . __send__ ( delegated ) { | condition | _valid? condition , v } } end
Condition Builders
 A innner method for some condition builders.
 For build conditions AND, NAND, OR, NOR, XOR, XNOR.
 @param delegated [Symbol]
 @return [lambda]
Condition Builders A innner method for some condition builders . For build conditions AND NAND OR NOR XOR XNOR .