Skip to content

Commit 74772a5

Browse files
authored
Merge pull request #13 from flash-gordon/add-block-argument
Add missing block parameter
2 parents a8887a4 + 9495ec9 commit 74772a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/weakref.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def initialize(orig)
4141
super
4242
end
4343

44-
def __getobj__ # :nodoc:
44+
def __getobj__(&_block) # :nodoc:
4545
@@__map[self] or defined?(@delegate_sd_obj) ? @delegate_sd_obj :
4646
Kernel::raise(RefError, "Invalid Reference - probably recycled", Kernel::caller(2))
4747
end

0 commit comments

Comments
 (0)