tap.rb 117 B

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