Exception: Mentor::NoMethodDidYouMeanSuggestionError
- Inherits:
-
MentorNoMethodError
- Object
- StandardError
- MentorError
- MentorNoMethodError
- Mentor::NoMethodDidYouMeanSuggestionError
- Defined in:
- lib/errors/no_method_did_you_mean_suggestion_error.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Colorize
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
Class Method Details
Instance Method Details
#sections ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/errors/no_method_did_you_mean_suggestion_error.rb', line 11 def sections [ Header.new, RubyErrorComplete.new, RelativePath.new, LinesOfCode.new, ErrorClassSpecificHelp.new(error_class_specific_help), Suggestion.new("Try changing the method #{method_name} to #{did_you_mean_word} on #{var_for_method}.") ] end |