From fa12d1ab2963a810d0114e4a45f8efa5941fc569 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 12 Nov 2015 13:08:14 +0100 Subject: fileutil: add access to File object, bump to 1.2.6 --- lib/zipf/fileutil.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/zipf/fileutil.rb b/lib/zipf/fileutil.rb index 7ae0c55..d9f3e24 100644 --- a/lib/zipf/fileutil.rb +++ b/lib/zipf/fileutil.rb @@ -14,6 +14,10 @@ class ReadFile end end + def get + return @f + end + def gets @f.gets { |line| yield line } end -- cgit v1.2.3