Sha256: 855fd0cb2bfb0e92c0485aa39ba2c42a3dc0b5c20e5c4ad4e6ab5b4d7490ae89

Contents?: true

Size: 420 Bytes

Versions: 2

Compression:

Stored size: 420 Bytes

Contents

module Tdc
  module Generators
    #
    # Knows how to contain arbitrary collections of model objects. As model instances are created
    # by generators, the model instances are added to the current catalog as catalog entries.
    #
    class CatalogEntries < OpenStruct
      def add_catalog_entry(tag, entry)
        send("#{tag}=", entry)
      end

      def empty?
        to_h.empty?
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdc-0.3.4 lib/tdc/generators/catalog_entries.rb
tdc-0.3.3 lib/tdc/generators/catalog_entries.rb