module Gemmy::Patches::ObjectPatch::InstanceMethods::Ergo
Public Instance Methods
ergo() { |self| ... }
click to toggle source
facets This is like tap, but tap yields self and returns self, where as ergo
yields self but returns the result.
# File lib/gemmy/patches/object_patch.rb, line 174 def ergo(&b) if block_given? b.arity > 0 ? yield(self) : instance_eval(&b) else self end end