On Jan 21, 2014 12:29 AM, "Fuad Saud" <fuadksd / gmail.com> wrote:
>
> Wouldn=92t such method accepting a block remove the need to have Object#t=
ap
at all? As I understand this method is just a tap that doesn=92t need a
block.

That depends on the contract. I was under the impression that #itself (or
whatever name) in block form would return the value of the block. e.g:

  def tap
    yield self if block_given?
    self
  end
  def itself
    if block_given?
      yield self
    else
      self
    end
  end