Sha256: 08f27c93686c84d1a7a68e1ca17ad8a2019f50f03452c4468d2cf320139ae7a4
Contents?: true
Size: 456 Bytes
Versions: 5
Compression:
Stored size: 456 Bytes
Contents
require 'rom/boot/base_relation_dsl' module ROM class Boot class SchemaDSL attr_reader :env, :schema def initialize(env, schema = {}) @env = env @schema = schema end def base_relation(name, &block) dsl = BaseRelationDSL.new(env, name) definition = dsl.call(&block) (schema[dsl.repository] ||= []) << definition end def call schema end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rom-0.4.2 | lib/rom/boot/schema_dsl.rb |
rom-0.4.1 | lib/rom/boot/schema_dsl.rb |
rom-0.4.0 | lib/rom/boot/schema_dsl.rb |
rom-0.3.1 | lib/rom/boot/schema_dsl.rb |
rom-0.3.0 | lib/rom/boot/schema_dsl.rb |