module JYRon::Helpers

Public Instance Methods

readfile(filename) click to toggle source
# File lib/jyron/helpers/files.rb, line 6
def readfile(filename)
  begin
    File::readlines(filename).join("\n")
  rescue Errno::ENOENT
    raise HelpersError.new "File #{filename} not found"
  end
end