Method: Mentor::OutputHelper#lines_from_file

Defined in:
lib/helpers/output_helper.rb

#lines_from_fileObject



45
46
47
48
49
# File 'lib/helpers/output_helper.rb', line 45

def lines_from_file
  return @lines_from_file if @lines_from_file
  file = File.new(Mentor.tp.path)
  @lines_from_file = file.map { |line| [file.lineno, line.chomp] }.to_h
end