sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 6ca6ae8ad3185d7b46d6ba6a41f200ac8b6521b5
parent aedb46bc4db34f79d7ded806eeab049c7349e945
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Mon,  4 Jan 2010 11:34:31 -0800

implement String#each on Ruby 1.9 for lockfile

Diffstat:
M lib/sup/util.rb | 6 ++++++
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -290,6 +290,12 @@ class String
     end
   end
 
+  unless method_defined? :each
+    def each &b
+      each_line &b
+    end
+  end
+
   ## takes a list of words, and returns an array of symbols.  typically used in
   ## Sup for translating Ferret's representation of a list of labels (a string)
   ## to an array of label symbols.