> if is_it_good?('apple')
>   return it_is_awesome!
> end

Get rid of any "it_is" or "is" in boolean methods please.

empty? not is_empty?

So something like:

def respond_to_bad_joke
   if @apple.good?
     eat @apple
   else
     throw @apple
   end
end

A real example would be much better.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" 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/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to