Sha256: 0ef9e728d7564cb8a8339a16648d8187f6f027e4783d6e6bf9e8df0b6a945e7d

Contents?: true

Size: 300 Bytes

Versions: 26

Compression:

Stored size: 300 Bytes

Contents

module Foobara
  class Command
    module Concerns
      module StateMachine
        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
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
foobara-0.0.26 projects/command/src/concerns/state_machine.rb
foobara-0.0.25 projects/command/src/concerns/state_machine.rb
foobara-0.0.24 projects/command/src/concerns/state_machine.rb
foobara-0.0.23 projects/command/src/concerns/state_machine.rb
foobara-0.0.22 projects/command/src/concerns/state_machine.rb
foobara-0.0.21 projects/command/src/concerns/state_machine.rb
foobara-0.0.20 projects/command/src/concerns/state_machine.rb
foobara-0.0.19 projects/command/src/concerns/state_machine.rb
foobara-0.0.18 projects/command/src/concerns/state_machine.rb
foobara-0.0.17 projects/command/src/concerns/state_machine.rb
foobara-0.0.16 projects/command/src/concerns/state_machine.rb
foobara-0.0.15 projects/command/src/concerns/state_machine.rb
foobara-0.0.14 projects/command/src/concerns/state_machine.rb
foobara-0.0.13 projects/command/src/concerns/state_machine.rb
foobara-0.0.12 projects/command/src/concerns/state_machine.rb
foobara-0.0.11 projects/command/src/concerns/state_machine.rb
foobara-0.0.10 projects/command/src/concerns/state_machine.rb
foobara-0.0.9 projects/command/src/concerns/state_machine.rb
foobara-0.0.8 projects/command/src/concerns/state_machine.rb
foobara-0.0.7 projects/command/src/concerns/state_machine.rb