module Byebug::Helpers::FileHelper
def get_lines(filename)
Reads lines of source file +filename+ into an array
def get_lines(filename) File.foreach(filename).reduce([]) { |acc, elem| acc << elem.chomp } end
def get_lines(filename) File.foreach(filename).reduce([]) { |acc, elem| acc << elem.chomp } end