# File lib/util/error_handler.rb, line 44 def can_raise_error(method_names, options = {}) error_class = options[:error_class] below = options[:below] || 0 # coerce the names to be an array Array(method_names).each do |method_name| # if the method doesn't already exist then queue this aliasing unless self.method_defined? method_name @@to_be_wrapped ||= [] @@to_be_wrapped << method_name else create_exception_handler_wrapper(method_name, error_class, below) end end end