Class: Mentor::RubyErrorComplete
- Inherits:
-
Object
- Object
- Mentor::RubyErrorComplete
- Includes:
- Outputs
- Defined in:
- lib/sections/ruby_error_complete.rb
Instance Method Summary collapse
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
Instance Method Details
#lines ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/sections/ruby_error_complete.rb', line 7 def lines lines_array = [] lines_array << RubyErrorMain.new.lines lines_array << DidYouMeanCorrection.new.line if DidYouMeanCorrection.can_handle? lines_array << Backtrace.new.lines lines_array = indent_lines(lines_array) lines_array << '' lines_array << horizontal_line end |