Exception: Zoidberg::WeakRef::RecycledException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Zoidberg::WeakRef::RecycledException
- Defined in:
- lib/zoidberg/weak_ref.rb
Overview
Exception type raised when referenced object no longer exists
Instance Attribute Summary collapse
-
#recycled_object_id ⇒ String
readonly
ID of referenced object casted to string.
Instance Method Summary collapse
-
#initialize(msg, recycled_object_id) ⇒ self
constructor
Create a new exception instance.
Constructor Details
#initialize(msg, recycled_object_id) ⇒ self
Create a new exception instance
17 18 19 20 |
# File 'lib/zoidberg/weak_ref.rb', line 17 def initialize(msg, recycled_object_id) @recycled_object_id = recycled_object_id super(msg) end |
Instance Attribute Details
#recycled_object_id ⇒ String (readonly)
Returns ID of referenced object casted to string.
11 12 13 |
# File 'lib/zoidberg/weak_ref.rb', line 11 def recycled_object_id @recycled_object_id end |