summaryrefslogtreecommitdiff
path: root/lib/weakref.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/weakref.rb')
-rw-r--r--lib/weakref.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/weakref.rb b/lib/weakref.rb
index 2bbadf68f9..c7274f9664 100644
--- a/lib/weakref.rb
+++ b/lib/weakref.rb
@@ -17,7 +17,8 @@ require "delegate"
#
class WeakRef < Delegator
- VERSION = "0.1.2"
+ # The version string
+ VERSION = "0.1.4"
##
# RefError is raised when a referenced object has been recycled by the
@@ -41,7 +42,7 @@ class WeakRef < Delegator
super
end
- def __getobj__ # :nodoc:
+ def __getobj__(&_block) # :nodoc:
@@__map[self] or defined?(@delegate_sd_obj) ? @delegate_sd_obj :
Kernel::raise(RefError, "Invalid Reference - probably recycled", Kernel::caller(2))
end