Sha256: 8cd1c8cda3ff954768b7a9a79fa55196593e2e58561823df74801b8dc9a55163

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

module Vanguard
  class Matcher
    class Binary
      # Boolean or connector
      class OR < self
        # Test if value matches left or right
        #
        # @return [true]
        #
        # @return [false]
        #
        # @api private
        #
        def matches?(value)
          left_matches?(value) || right_matches?(value)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vanguard-0.0.5 lib/vanguard/matcher/binary/or.rb
vanguard-0.0.4 lib/vanguard/matcher/binary/or.rb
vanguard-0.0.3 lib/vanguard/matcher/binary/or.rb