lib/regurgitator.rb in regurgitator-0.6.0 vs lib/regurgitator.rb in regurgitator-0.7.0
- old
+ new
@@ -26,14 +26,14 @@
autoload :DomainPath, 'regurgitator/domain_path'
autoload :DomainHost, 'regurgitator/domain_host'
autoload :OneDomain, 'regurgitator/one_domain'
# used to wrap up all Regurgitator-specific extensions
- class Error < StandardError; end
+ Error = Class.new(StandardError) # :nodoc:
# raised when there are no readable devices
- class NoDevices < Error; end
+ NoDevices = Class.new(Error) # :nodoc:
# raised by FileRequest when the HTTP status code
# is outside of (200-299, 304)
- class BadResponse < Error; end
+ BadResponse = Class.new(Error) # :nodoc:
end