module Byebug::Helpers::FileHelper

def n_lines(filename)


one-line-at-a-time way.
Returns the number of lines in file +filename+ in a portable,
def n_lines(filename)
  File.foreach(filename).reduce(0) { |acc, _elem| acc + 1 }
end