Categories
General nonsense Ruby

Duck typing for dummies

def duck?
  respond_to? :quack
end

Leave a Reply