Sha256: 66478511cf90f94bc386015ffa6ec0093cca0e8cca8c27136412084aae8e5962

Contents?: true

Size: 283 Bytes

Versions: 5

Compression:

Stored size: 283 Bytes

Contents

module Dry
  class Struct
    extend Dry::Configurable

    setting :namespace, self

    Error = Class.new(TypeError)

    class RepeatedAttributeError < ArgumentError
      def initialize(key)
        super("Attribute :#{key} has already been defined")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dry-struct-0.2.1 lib/dry/struct/errors.rb
dry-struct-0.2.0 lib/dry/struct/errors.rb
dry-struct-0.1.1 lib/dry/struct/errors.rb
dry-struct-0.1.0 lib/dry/struct/errors.rb
dry-struct-0.0.1 lib/dry/struct/errors.rb