about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-12 11:36:58 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-12 11:36:58 -0800
commita2c054810e035915d1e5ff27afd2b631de6ded0a (patch)
treeaa6e0e2dccce19f7275870aaa1b72be67c694f88
parent81c1f96c2c99d16b211f6b97c6f99ea46dfa9cd0 (diff)
downloadupr-a2c054810e035915d1e5ff27afd2b631de6ded0a.tar.gz
upr/status: add done? method
Makes it easier to tell if we're done or not
-rw-r--r--lib/upr/status.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/upr/status.rb b/lib/upr/status.rb
index e3f4024..e3bb356 100644
--- a/lib/upr/status.rb
+++ b/lib/upr/status.rb
@@ -6,5 +6,10 @@ module Upr
     def error?
       seen == -1
     end
+
+    def done?
+      length && seen >= length
+    end
+
   end
 end