lib/peddler/errors/class_generator.rb in peddler-2.0.4 vs lib/peddler/errors/class_generator.rb in peddler-2.1.0
- old
+ new
@@ -18,9 +18,10 @@
end
def generate(name)
with_mutex do
return Errors.const_get(name) if Errors.const_defined?(name)
+
Errors.const_set(name, Class.new(Error))
end
end
private