module Stitcher::Operators

Public Class Methods

require_other(other) click to toggle source
# File lib/stitcher/operators.rb, line 7
def self.require_other other
        Proc === other || Class === other
end

Public Instance Methods

!() click to toggle source
# File lib/stitcher/operators.rb, line 21
def !
        proc { |it, &block| !(self.===(it, &block)) }
end
&(other) click to toggle source
Calls superclass method
# File lib/stitcher/operators.rb, line 11
def & other
        return super(other) unless Operators.require_other other
        proc { |it, &block| self.===(it, &block) && other.===(it, &block)  }
end
|(other) click to toggle source
Calls superclass method
# File lib/stitcher/operators.rb, line 16
def | other
        return super(other) unless Operators.require_other other
        proc { |it, &block| self.===(it, &block) || other.===(it, &block)  }
end