Sha256: e5f082f6b0dda781f28337c84e608157fa2f7cb3539c238b3b1de9c3a1ae7ccf

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

require File.dirname(__FILE__) + '/table'
    
module DataMapper
  module Adapters
    module Sql
      module Mappings
    
        class Schema
    
          def initialize(adapter)
            @adapter = adapter
            @tables = Hash.new { |h,k| h[k] = Table.new(@adapter, k) }
          end

          def [](klass)
            @tables[klass]
          end
      
          def each
            @tables.values.each do |table|
              yield table
            end
          end
    
        end
    
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datamapper-0.1.1 lib/data_mapper/adapters/sql/mappings/schema.rb