Method: Object#revapply

Defined in:
lib/mug/self.rb

#revapply(*args, &_block) ⇒ Object Also known as: cede

Yields this object (and any other arguments) to a block. If no block is given, returns an Enumerator.



29
30
31
32
33
34
35
# File 'lib/mug/self.rb', line 29

def revapply(*args, &_block)
  if block_given?
    yield self, *args
  else
    enum_for(:revapply, *args) { args.length + 1 }
  end
end