upr.git  about / heads / tags
Upload Progress for Rack
blob 763f810effb70ecc7a844de974dad9c12c55d170 235 bytes (raw)
$ git show HEAD:lib/upr/status_methods.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
# -*- encoding: binary -*-
module Upr
  # mixin module for both Upr::Status and UprStatus (AR example module)
  module StatusMethods
    def error?
      seen < 0
    end

    def done?
      length && seen >= length
    end
  end
end

git clone https://yhbt.net/upr.git