Sha256: 008fc46ff5f72940894a8694114265ee0de17840f0ec269e628e0fe620305918

Contents?: true

Size: 327 Bytes

Versions: 4

Compression:

Stored size: 327 Bytes

Contents

require 'rubygems'
require 'spec'

# $LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'simple_state'

##
# Creates an anonymous class which uses SimpleState.
#
def state_class(&blk)
  Class.new do
    extend SimpleState
    state_machine(&blk)
  end.new
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
anthonyw-simple_state-0.1.2 spec/spec_helper.rb
anthonyw-simple_state-0.1.3 spec/spec_helper.rb
anthonyw-simple_state-0.2.0 spec/spec_helper.rb
antw-simple_state-0.2.1 spec/spec_helper.rb