From: Gary Wright Date: 2011-01-20T01:21:11+09:00 Subject: Re: The most recommended way of naming methods in Ruby On Jan 19, 2011, at 3:13 AM, Edmond Kachale wrote: > Le 18 janvier 2011 22:01:11 UTC+2, Gary Wright a écrit : > >> >> On Jan 18, 2011, at 7:30 AM, Phillip Gawlowski wrote: >>> >>> - methods that modify the object (or caller) itself, should be >> exclamations: >>> obj.truncate! >>> obj.remove_name! >>> obj.date! "Julian" # I wish I could do obj.date "Julian"!, instead. Ah, >> well. >> >> I think the conventional wisdom is that this should only be done only if >> there is a matching non-mutating method that has the name without the >> exclamation mark. > > > Someone may give more info on why it should be like this: > I think you left something off. Anyway... Here is a great explanation of the '!' naming convention: I was going to try to explain this but why bother when David Black has already done a great job? Gary Wright