Exception: InstantCache::Destroyed

Inherits:
Exception
  • Object
show all
Defined in:
lib/instantcache/exceptions.rb

Overview

Once a variable has been hit by the ‘destroy!’ method, it becomes inaccessible to the instance.

Constant Summary collapse

MessageFormat =

raise Destroyed

=> InstantCache::Destroyed: attempt to access destroyed variable

raise Destroyed.new('arg')

=> InstantCache::Destroyed: attempt to access destroyed variable "arg"
[
 'attempt to access destroyed variable',
 'attempt to access destroyed variable "%s"',
]

Method Summary

Methods inherited from Exception

#initialize, #message, #to_s

Constructor Details

This class inherits a constructor from InstantCache::Exception