Module: Foobara::CommandPatternImplementation::Concerns::StateMachine

Included in:
Foobara::CommandPatternImplementation
Defined in:
foobara-0.0.110/projects/command/src/command_pattern_implementation/concerns/state_machine.rb

Instance Method Summary collapse

Instance Method Details

#state_machineObject



5
6
7
8
# File 'foobara-0.0.110/projects/command/src/command_pattern_implementation/concerns/state_machine.rb', line 5

def state_machine
  # It makes me nervous to pass self around. Seems like a design smell.
  @state_machine ||= Foobara::Command::StateMachine.new(owner: self)
end