module AppTester::Utils
@abstract Helper utilities module
Public Instance Methods
file_to_array(file)
click to toggle source
Convert a file to an array
@param file [String] path to the file
@return [Array] each entry on the array corresponds to each line on the file
# File lib/app-tester/utils.rb, line 17 def file_to_array file lines = [] File.open(file, "r") do |infile| while (line = infile.gets) lines.push(line.gsub("\n", "").rstrip) end end lines end