Module: Backup::ErrorsHelper
- Included in:
- Errors
- Defined in:
- lib/backup/errors.rb
Overview
Instance Method Summary collapse
Instance Method Details
#const_missing(const) ⇒ Object
13 14 15 16 17 18 19 20 |
# 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 |