Sha256: a2564049bd730149b8f5903605a3a24a09e900e1cfcba8fee8a3d81155b7068b
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
require 'singleton' require 'peddler/errors/error' module Peddler module Errors # @api private class Builder include Singleton def self.build(name) instance.build(name) end def build(name) return Errors.const_get(name) if Errors.const_defined?(name) Errors.const_set(name, Class.new(Error)) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
peddler-1.4.0 | lib/peddler/errors/builder.rb |