Class: Object

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

Overview

define #tap

Instance Method Summary collapse

Instance Method Details

#tap(&block) ⇒ Object



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

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

#tryObject



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

def try
  self
end