Method: Object#self

Defined in:
lib/mug/self.rb

#self(&block) ⇒ Object Also known as: itself

Returns this object.

If a block is given, this object is yielded to it, and the result is returned.



9
10
11
12
13
14
15
# File 'lib/mug/self.rb', line 9

def self(&block)
	if block_given?
		yield self
	else
		self
	end
end