Sha256: 905d51dd37316a3d1e762582da35e9a731848b916859f382763b51c82e5f0b8e
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
module Dry class Struct # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-struct-0.4.0 | lib/dry/struct/errors.rb |