2013-07-08

Ruby : skip alarm msg output

alarm like

warning: already initialized constant AAA
AAA is not a valid option for BBB

just code

#remove alarm
original_verbose, $VERBOSE = $VERBOSE, nil

######################
#your alarm code here#
######################

#restart alarm
$VERBOSE = original_verbose

沒有留言:

張貼留言