Tuesday, February 5, 2008

Ruby duck typing effect

Last week we could see questions about to_s and to_str on the forum. Some assumptions too: * Appears to be to_str an alias for to_s * Most classes implement to_s, just a few implement to_str. * There existences just confirm Ruby immaturity. * Some are automatic casting others are a "do it yourself" version.

No comments: