Sha256: 44fa5d9c109fd9f8ba6e3f25835d20fcd75c0e3fa2c99a75897f649d5a25bb93

Contents?: true

Size: 235 Bytes

Versions: 2

Compression:

Stored size: 235 Bytes

Contents

# -*- 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
upr-0.3.0 lib/upr/status_methods.rb
upr-0.2.0 lib/upr/status_methods.rb