def choice(to, **conditions)
      transition_builder = TransitionBuilder.new(@machine, @name,
                                                 @transitions.merge(conditions))
      transition_builder.call(@transitions[:from] => to)
    end
def choice(to, **conditions)
      transition_builder = TransitionBuilder.new(@machine, @name,
                                                 @transitions.merge(conditions))
      transition_builder.call(@transitions[:from] => to)
    end
Initialize a ChoiceMerger

 @param [StateMachine] machine
 @param [String] name
 @param [Hash] transitions
   the transitions and attributes

 @api private
 Create choice transition

 @example
   event :stop, from: :green do
     choice :yellow
   end

 @param [Symbol] to
   the to state
 @param [Hash] conditions
   the conditions associated with this choice

 @return [FiniteMachine::Transition]

 @api public