Sha256: 65d51fab19ca3d150cf552efb32286fa6aa154ea612b22dc731e75f2a97d9b11

Contents?: true

Size: 673 Bytes

Versions: 5

Compression:

Stored size: 673 Bytes

Contents

#
#       ActiveFacts Generators.
#       Generation support superclass that sequences entity types to avoid forward references.
#
# Copyright (c) 2009 Clifford Heath. Read the LICENSE file.
#
module ActiveFacts
  module Generate #:nodoc:
    module OrderedTraits
      module DumpedFlag
	attr_reader :ordered_dumped

	def ordered_dumped!
	  @ordered_dumped = true
	end
      end

      module ObjectType
	include DumpedFlag
      end

      module FactType
	include DumpedFlag
      end

      module Constraint
	include DumpedFlag
      end

      include ActiveFacts::TraitInjector	# Must be last in this module, after all submodules have been defined
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activefacts-1.6.0 lib/activefacts/generate/traits/ordered.rb
activefacts-1.5.3 lib/activefacts/generate/traits/ordered.rb
activefacts-1.5.2 lib/activefacts/generate/traits/ordered.rb
activefacts-1.5.1 lib/activefacts/generate/traits/ordered.rb
activefacts-1.5.0 lib/activefacts/generate/traits/ordered.rb