Class: YARD::StateMachine::Handlers::StateMachineEventHandler
- Inherits:
-
Handlers::Ruby::Base
- Object
- Handlers::Ruby::Base
- YARD::StateMachine::Handlers::StateMachineEventHandler
- Defined in:
- lib/yard-state_machine/yard/state_machine/handlers/state_machine_event_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 19 20 |
# File 'lib/yard-state_machine/yard/state_machine/handlers/state_machine_event_handler.rb', line 12 def process return unless called_within_state_machine_macro? event = extract_event_from_statement(statement) decorate_event_with_description event append_event_to_owner event end |