Sha256: cb513c6d34818081296545f144a3ed362433edf86a24f21fbfbf3f76cfd22b4a

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

require "pb_syringe/version"
require "pb_syringe/progressable"
require "pb_syringe/progress_unit"

module PbSyringe
  class << self
    attr_reader :suppress, :suppress_proc

    def suppress?
      suppress_proc ? suppress_proc.call : suppress == true
    end

    def suppress_if(value = false, &block)
      @suppress_proc = block if block_given?
      @suppress = value
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pb_syringe-0.1.1 lib/pb_syringe.rb
pb_syringe-0.1.0 lib/pb_syringe.rb