Methods

Class/Module Index [+]

Quicksearch

Backup::ErrorsHelper

e.g.

err = Backup::Errors::Foo::Bar::FooError.new('error message')
err.message => "Foo::Bar::FooError: error message"

Public Instance Methods

const_missing(const) click to toggle source
# File lib/backup/errors.rb, line 12
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

[Validate]

Generated with the Darkfish Rdoc Generator 2.