Exception: Mentor::MentorNoMethodError

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

Class Method Summary collapse

Methods included from Colorize

colorize, colorize_section

Methods included from OutputHelper

#a_an, #and_sentence, #culprit_line, #home_to_tilde, #indent_lines, #lines_from_file, #or_sentence, #pluralize, #pluralize_words, #terminal_width, #valid_var_name

Methods inherited from MentorError

error_classes, 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