Class: YARD::StateMachine::Handlers::StateMachineTransitionHandler
- Inherits:
-
Handlers::Ruby::Base
- Object
- Handlers::Ruby::Base
- YARD::StateMachine::Handlers::StateMachineTransitionHandler
- Defined in:
- lib/yard-state_machine/yard/state_machine/handlers/state_machine_transition_handler.rb
Overview
Handles and processes the #state_machine macro
Instance Method Summary collapse
Instance Method Details
#process ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/yard-state_machine/yard/state_machine/handlers/state_machine_transition_handler.rb', line 12 def process return unless called_within_state_machine_event? transition = extract_transition_from_statement(statement) append_transition_to_owner transition end |