self
Protects against infinite recursion by not yielding with frozen objects
Guard against recursively calling a block with the same frozen object
@param [Object] object
@return [Object]
# File lib/ice_nine/support/recursion_guard.rb, line 48 def guard(object) return object if object.frozen? yield end
[Validate]
Generated with the Darkfish Rdoc Generator 2.