Conventions are one of Ruby‘s nicest features, making it easier to read and maintain. One convention is that methods which may modify an object have a ‘!’ in their name, such as ‘chop!’, which indicates if there are no changes, then nil is returned. This can cause issues with method chaining.
13Feb09
Holy Ruby Methods, Batman!
- No Comments