Method: Puppet::Pops::Types::RecursionGuard#recursive_this?
- Defined in:
- lib/puppet/pops/types/recursion_guard.rb
#recursive_this?(instance) ⇒ Integer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Checks if recursion was detected for the given argument in the ‘this’ context
26 27 28 |
# File 'lib/puppet/pops/types/recursion_guard.rb', line 26 def recursive_this?(instance) instance_variable_defined?(:@recursive_this_map) && @recursive_this_map.has_key?(instance.object_id) end |