Sha256: 926e419d3e73091e30ccd836a39ab4d311be995173bbde1f899167d2044b0e03

Contents?: true

Size: 249 Bytes

Versions: 3

Compression:

Stored size: 249 Bytes

Contents

module DeadSimpleDb

  class AttributeDefinition

    attr_reader :name

    def initialize(name, klass, opts={})
      @name, @klass, @opts = name, klass, opts 
    end

    def to_attr
      Attribute.new(@name, @klass, @opts)
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hungryblank-dead_simple_db-0.0.1 lib/dead_simple_db/attribute_definition.rb
hungryblank-dead_simple_db-0.0.2 lib/dead_simple_db/attribute_definition.rb
hungryblank-dead_simple_db-0.0.3 lib/dead_simple_db/attribute_definition.rb