# File lib/rspec-puppet/cache.rb, line 13 def get(*args, &blk) # decouple the hash key from whatever the blk might do to it key = Marshal.load(Marshal.dump(args)) if !@cache.has_key? key @cache[key] = (blk || @default_proc).call(*args) @lra << key expire! end @cache[key] end