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



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

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

#tryObject



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

def try
  self
end