Sha256: b25c3dd07a40ef62dcec35e4623f69c17b9b7bc1b3bb990ff7a2c869fa504253

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

# encoding: utf-8

module ROM

  # ROM's relation schema
  #
  class Schema
    include Concord.new(:relations), Adamantium::Flat

    # Return a relation identified by name
    #
    # @param [Symbol] name of the relation
    #
    # @return [Relation]
    def [](name)
      relations.fetch(name)
    end

  end # Schema

end # ROM

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-0.2.0 lib/rom/schema.rb