From: Rahul Kumar Date: 2010-11-02T19:25:54+09:00 Subject: Re: get method name when aliasing Ryan Davis wrote in post #958662: > On Nov 2, 2010, at 02:13 , Rahul Kumar wrote: > >> flag = (m == "write!" ? true : false) > > CONGRA TULATIONS! YOU JUST WON!!! Pet peeve numero uno: > > a == b ? true : false > > vs: > > a == b My apologies. i typed that in a hurry just to give an idea. My case is not the same as the ! in ruby methods. Its more like in Vim, where "write!" will not prompt if the file exists, whereas "write" will. Regarding "might", I'd rather have this thought out at the start, rather than have to rewrite a whole lot of code later. -- Posted via http://www.ruby-forum.com/.