Exception: Mentor::MentorNoMethodError

Inherits:
MentorError
  • Object
show all
Extended by:
Colorize, Outputs
Defined in:
lib/errors/mentor_no_method_error.rb

Direct Known Subclasses

NoMethodDidYouMeanSuggestionError

Class Method Summary collapse

Methods included from Colorize

colorize, colorize_section

Methods included from Outputs

absolute_base_dir, app_dir, backtrace_lines, calling_method, did_you_mean_text, did_you_mean_word, error_lineno, error_lineno_padded, file_name, horizontal_line, instance_methods, lineno_subtle_padded, message, method_class, method_class_plural, method_class_superclass, method_class_superclasses, method_name, relative_base_dir, ruby_error_class, ruby_error_text, var_for_method

Methods included from OutputHelper

#home_to_tilde, #indent_lines, #lines_from_file, #terminal_width, #valid_var_name

Methods inherited from MentorError

find, #output

Class Method Details

.can_handle?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/errors/mentor_no_method_error.rb', line 7

def self.can_handle?
  Mentor.tp.raised_exception.class == NoMethodError
end