Sha256: d7ec9b739b20fe5748bf626a78e30bb5cfa186d21d88338b75f58fcfa35fcb5d
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
module Domain module API # Raises a type error for `args`. # # @param [Array] args # arguments passed to `new` or another factory method # @raise TypeError # # @api protected def domain_error!(first, *args) first = [first]+args unless args.empty? raise TypeError, "Can't convert `#{first.inspect}` into #{self}", caller end protected :domain_error! end # module API end # module Domain
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
domain-1.0.0 | lib/domain/api.rb |
domain-1.0.0.rc4 | lib/domain/api.rb |
domain-1.0.0.rc3 | lib/domain/api.rb |