From: Jason Creighton Date: 2004-02-23T07:49:50+09:00 Subject: Re: A way to "require 'warnings'" On Sat, 21 Feb 2004 09:31:11 +0900, Joel VanderWerf wrote: > Jason Creighton wrote: > > It would be nice if there was a "warnings.rb" file in the standard > > distribution that contained: > > > > $VERBOSE = true > > > > ...so you could say > > > > require 'warnings' > > > > in a script, which, IMHO, reads a little better than "$VERBOSE = true" > > > > What do you think? > > Makes sense. Or it could be 'ant.rb' instead of 'warnings.rb' so that > you could say > > $ ruby -rant -e 'p Math.cos 0' > -e:1: warning: parenthesize argument(s) for future version > 1.0 Oh! Neat idea! We could also have 'ave.rb' as an alias. :-) Jason Creighton