Sha256: 2529921b5fbeddf6bcb74466780f5b95a926d4788d50445b631a998adfa4de50

Contents?: true

Size: 271 Bytes

Versions: 1

Compression:

Stored size: 271 Bytes

Contents

module JYRon
  module Helpers

    class HelpersError < Exception; end

    def readfile(filename)
      begin
        File::readlines(filename).join("\n")
      rescue Errno::ENOENT
        raise HelpersError.new "File #{filename} not found"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jyron-0.1 lib/jyron/helpers/files.rb