Class: StateMachine::YARD::Handlers::Event
- Defined in:
- lib/state_machine/yard/handlers/event.rb
Overview
Handles and processes #event
Instance Method Summary collapse
Instance Method Details
#process ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/state_machine/yard/handlers/event.rb', line 8 def process if owner.is_a?(StateMachine::Machine) handler = self statement = self.statement names = extract_node_names(statement.parameters(false)) names.each do |name| owner.event(name) do # Parse the block handler.parse_block(statement.last.last, :owner => self) end end end end |