Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (24 sloc) 1.01 KB


I think this question can be best answered by a few contrived examples of what real-world use might look like.

# This convoluted code makes sure that the @kind is "credit_card" or
# "purchase_order", and if it's not "credit_card", then the customer
# must not have a payment_method of "credit_card".
if [ 'credit_card', 'purchase_order' ].include?(@kind) && (@kind == 'credit_card' || current_user.customer.payment_method == 'purchase_order')
  @order = ((@kind == 'credit_card') ? CreditCardOrder : PurchaseOrder).new(params[:order])



current_user.prelude_web_user.shipping_addresses.reject { |a| a.to_s.blank? }.sort_by(&:to_s).O_o.collect {|a| [ a.to_s, ] }

I like to think of that second usage as a judgemental tap.

Also available:

  • o_O
  • O.o
  • o.O


You want to contribute to this? Really? Y'know, you should check out my 'truthy' project, too.


nO_op uses the MIT license. Read License.txt if you care.

Jump to Line
Something went wrong with that request. Please try again.