Class: Vanguard::Matcher

Inherits:
Object
  • Object
show all
Includes:
AbstractType, Adamantium::Flat
Defined in:
lib/vanguard/matcher.rb,
lib/vanguard/matcher/unary.rb,
lib/vanguard/matcher/binary.rb,
lib/vanguard/matcher/nullary.rb,
lib/vanguard/matcher/binary/or.rb,
lib/vanguard/matcher/unary/not.rb,
lib/vanguard/matcher/binary/and.rb,
lib/vanguard/matcher/binary/xor.rb,
lib/vanguard/matcher/nullary/proc.rb,
lib/vanguard/matcher/nullary/value.rb,
lib/vanguard/matcher/nullary/format.rb,
lib/vanguard/matcher/unary/attribute.rb,
lib/vanguard/matcher/nullary/equality.rb,
lib/vanguard/matcher/nullary/identity.rb,
lib/vanguard/matcher/nullary/inclusion.rb,
lib/vanguard/matcher/nullary/less_than.rb,
lib/vanguard/matcher/nullary/primitive.rb,
lib/vanguard/matcher/nullary/greater_than.rb

Overview

Abstract base class for matchers

Direct Known Subclasses

Binary, Nullary, Unary

Defined Under Namespace

Classes: Binary, Nullary, Unary

Instance Method Summary collapse

Instance Method Details

#matches?true, false

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Test if value matches

Returns:

  • (true)

    if value matches

  • (false)

    otherwise



16
# File 'lib/vanguard/matcher.rb', line 16

abstract_method :matches?