1 2 3 4 5 6 7 8 9
class Object unless new.respond_to?(:tap) def tap yield self return self end end end