Method: StateMachine::Matcher#initialize
- Defined in:
- lib/state_machine/matcher.rb
#initialize(values = []) ⇒ Matcher
Creates a new matcher for querying against the given set of values
12 13 14 |
# File 'lib/state_machine/matcher.rb', line 12 def initialize(values = []) @values = values.is_a?(Array) ? values : [values] end |