Class: Mentor::Suggestion

Inherits:
Object
  • Object
show all
Includes:
Colorize, Outputs
Defined in:
lib/sections/suggestion.rb

Instance Attribute Summary collapse

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

Methods included from Colorize

#colorize, #colorize_section

Constructor Details

#initialize(suggestion = '') ⇒ Suggestion

Returns a new instance of Suggestion.



9
10
11
12
# File 'lib/sections/suggestion.rb', line 9

def initialize(suggestion = '')
  @lines = suggestion
  format_lines
end

Instance Attribute Details

#linesObject (readonly)

Returns the value of attribute lines.



7
8
9
# File 'lib/sections/suggestion.rb', line 7

def lines
  @lines
end