Class: Object

Inherits:
BasicObject
Defined in:
lib/extensions.rb,
lib/extensions.rb

Overview

define #tap

Instance Method Summary collapse

Instance Method Details

#tap(&block) ⇒ Object



24
25
26
27
# File 'lib/extensions.rb', line 24

def tap(&block)
  block.call(self)
  self
end

#tryObject



3
4
5
# File 'lib/extensions.rb', line 3

def try
  self
end