diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-12 11:36:58 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-12 11:36:58 -0800 |
commit | a2c054810e035915d1e5ff27afd2b631de6ded0a (patch) | |
tree | aa6e0e2dccce19f7275870aaa1b72be67c694f88 | |
parent | 81c1f96c2c99d16b211f6b97c6f99ea46dfa9cd0 (diff) | |
download | upr-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.rb | 5 |
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 |