# File lib/backup/errors.rb, line 13 def const_missing(const) if const.to_s.end_with?('Error') module_eval("class #{const} < Backup::Errors::Error; end") else module_eval("module #{const}; extend Backup::ErrorsHelper; end") end const_get(const) end