| Message: 92810 |
 |
BY: Dan Rathbun (danzoid61) DATE: 2010-02-23 17:21 SUBJECT: RE: no such file to load -- win32/eventlog Aaron wrote:
<<
irb(main):004:1> $:.join ("\n")
>>
Try not to put space char between method names and their parameter list; strange errors can result.
The newline argument for Array.join is the string separator to use when concatenating the Array's elements (which are converted to String if they aren't already a String.) So instead of getting on big long String (the defualt separator is nil,) you get a list with each element on a new line.
irb might not output the result, like the standard console.
.. or in irb you might try
puts $:.join("\n")
| |