Class StateMachine::AllMatcher
In: lib/state_machine/matcher.rb
Parent: Matcher

Matches any given value. Since there is no configuration for this type of matcher, it must be used as a singleton.

Methods

-   description   filter   matches?  

Included Modules

Singleton

Public Instance methods

Generates a blacklist matcher based on the given set of values

Examples

  matcher = StateMachine::AllMatcher.instance - [:parked, :idling]
  matcher.matches?(:parked)       # => false
  matcher.matches?(:first_gear)   # => true

A human-readable description of this matcher. Always "all".

Always returns the given set of values

[Validate]