This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
puts: Make it more compatible to MRI
- puts calls #to_ary on non-String objects, without checking its existance beforehand. This behavior is copied for cases where the receiver has a #method_missing in place that catches this call - If puts calls #to_s, and #to_s does not return a string (e.g. some bogus override of #to_s), it outputs generic object infos (Class name and address)
- Loading branch information
Showing 2 changed files with 30 additions and 7 deletions.