Sha256: c7eaccf8983da765a67680807572ebfb049de784034905e6500b7f011edcc495

Contents?: true

Size: 315 Bytes

Versions: 1

Compression:

Stored size: 315 Bytes

Contents

module Unit
  module Util
    class Schema
      Attribute = Struct.new(:name, :type, :readonly)

      def initialize
        @attributes = []
      end

      def add(name, type, readonly: false)
        @attributes << Attribute.new(name, type, readonly)
      end
      attr_reader :attributes
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unit-ruby-0.1.0 lib/unit-ruby/util/schema.rb