13 lines
143 B
Ruby
13 lines
143 B
Ruby
module Kernel
|
|
def silence
|
|
if $VERBOSE
|
|
$VERBOSE = false
|
|
yield
|
|
$VERBOSE = true
|
|
else
|
|
yield
|
|
end
|
|
end
|
|
end
|
|
|
|
|