07 September 2007

Always use lenth on ruby collections

Dan Mayer
Dan Mayer @danmayer

This bug never got me, but it is a good little ruby best practice to follow. So remember when ever using ruby collections use .length call not the .size call… Why use length on all ruby collections.

Categories