Displaying 1 result from an estimated 1 matches for "rubyhoedown2008".
Did you mean:
rubyhoedown2007
2008 Nov 07
6
How to spec a (Trollop-based) binary’s internal state?
...bviously doesn?t work, as the Kernel#` call is executed in
a context that is not visible from the current Ruby interpreter.
I assume that eval()-ing the binary (much like Rick Bradley does?
for specing flog) would be the way to go, but then I don?t know how
to pass the -d flag to Trollop.
? http://rubyhoedown2008.confreaks.com/11-rick-bradley-flog-test-new.html
What would be the best practice in this case? Prepare ARGV for Trollop
so that it believes we are calling the binary with the -d flag and then
eval the binary, or run the binary with Kernel#`, pass it something
that should generate debug output and...