Class: EnumStateMachine::YARD::Handlers::State
- Inherits:
-
Base
- Object
- YARD::Handlers::Ruby::Base
- Base
- EnumStateMachine::YARD::Handlers::State
- Defined in:
- lib/enum_state_machine/yard/handlers/state.rb
Overview
Handles and processes #state
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/enum_state_machine/yard/handlers/state.rb', line 8 def process if owner.is_a?(EnumStateMachine::Machine) handler = self statement = self.statement names = extract_node_names(statement.parameters(false)) names.each do |name| owner.state(name) do # Parse the block handler.parse_block(statement.last.last, :owner => self) end end end end |