Sha256: a7879b39ddcae381b9f0961a5c0411594c3525a5b733f79af82d20df85981da4

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

module Mutator
  class Stateholder < Machine
    def self.transitions
      [
        { from: :initial_state, to: :second_state },
        { from: [:second_state], to: :third_state }
      ]
    end
  end
end

class Stateholder
  include Mutator::Helpers

  attr_writer :state

  def state
    @state ||= :initial_state
  end

  def self.where *_
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mutator-0.2.0 spec/support/test_classes.rb