Sha256: 467c2a012563cacdad35727025c4cd8d8e68aa763425a4ecc57a71cac90c2a3c

Contents?: true

Size: 509 Bytes

Versions: 1

Compression:

Stored size: 509 Bytes

Contents

module DataMapper
  module Is
    module StateMachine
      module Data

        class Event

          attr_reader :name, :machine, :transitions

          def initialize(name, machine)
            @name        = name
            @machine     = machine
            @transitions = []
          end

          def add_transition(from, to, via)
            @transitions << { :from => from, :to => to, :via => via }
          end

        end

      end # Data
    end # StateMachine
  end # Is
end # DataMapper

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
halorgium-dm-is-state_machine-0.10.2.via lib/dm-is-state_machine/is/data/event.rb