Sha256: 86a6feb0d83a594396f5c79aed9310e9b4a2b7d802bb599463996c80d04d4457

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

module ROM
  class Setup
    class RelationDSL
      attr_reader :schema, :relations

      def initialize(schema, relations)
        @schema = schema
        @relations = relations
      end

      def register(name, &block)
        relations[name] = [block]
      end

      def call
        relations
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-0.5.0 lib/rom/setup/relation_dsl.rb