Sha256: 7ed9ebae2691ebd59493b461b573aead22e10ec8f11ff96e5b065bec05a74e4e
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
module MatrixQQ class << self def intercept?(tunnel) i = tunnel[:intercept] return true if i.nil? return true if i false end def log(name, call = nil) uuid = SecureRandom.uuid puts "Start #{name} -- #{uuid}" if $VERBOSE if call.nil? yield else call.call end puts "End #{name} -- #{uuid}" if $VERBOSE end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
matrix_qq-0.4.0 | lib/matrix_qq/utils.rb |