On Tue, Aug 13, 2013 at 11:11 AM, Justin Collins <justincollins / ucla.edu> wrote:

> when Foo#to_s doesn't return a string, then Ruby falls back on its
> default object representation instead of converting *that* value to a string.

Excellent catch!  If you change the 1 to "1" (i.e., make it a string),
then the 1 shows up instead of the ugly default object representation.

-Dave

-- 
Dave Aronson, the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.