On Mon, Sep 20, 2010 at 4:12 PM, radhames brito <[email protected]> wrote: > functions that return booleans( true or false), can end with a question mark > ( ? )
Any Ruby method name can end in a question mark, returning a boolean is not required. ruby-1.9.2-p0 > def foo?; return 1; end; foo? => 1 -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

