Sha256: 5e53d9ba3697484f160856a7d146da550d82f21b36d4f13c4aac7457d95c058b
Contents?: true
Size: 501 Bytes
Versions: 2
Compression:
Stored size: 501 Bytes
Contents
module Dry class Struct extend Dry::Configurable setting :namespace, self # Raised when given input doesn't conform schema and constructor type Error = Class.new(TypeError) # Raised when defining duplicate attributes class RepeatedAttributeError < ArgumentError # @param [Symbol] key # attribute name that is the same as previously defined one def initialize(key) super("Attribute :#{key} has already been defined") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-struct-0.3.1 | lib/dry/struct/errors.rb |
dry-struct-0.3.0 | lib/dry/struct/errors.rb |