Sha256: a3aba5d35b8ab2fc46c2e4a4409d9b874649f6912046d7440ee5a837916d79db

Contents?: true

Size: 675 Bytes

Versions: 5

Compression:

Stored size: 675 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 Generators #: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-generators-1.8.3 lib/activefacts/generators/traits/ordered.rb
activefacts-generators-1.8.2 lib/activefacts/generators/traits/ordered.rb
activefacts-generators-1.8.1 lib/activefacts/generators/traits/ordered.rb
activefacts-generators-1.8.0 lib/activefacts/generators/traits/ordered.rb
activefacts-generators-1.7.1 lib/activefacts/generators/traits/ordered.rb