Skip to content

Commit 50e1ffd

Browse files
marcandrehsbt
authored andcommitted
lib/ostruct: Remove unnecessary __send__
Patch by yuuji.yaginuma [Fix GH-1890] Since `remove_method` is public. Ref: https://bugs.ruby-lang.org/issues/14133 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 4f93110 commit 50e1ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ostruct.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def dig(name, *names)
294294
def delete_field(name)
295295
sym = name.to_sym
296296
begin
297-
singleton_class.__send__(:remove_method, sym, "#{sym}=")
297+
singleton_class.remove_method(sym, "#{sym}=")
298298
rescue NameError
299299
end
300300
@table.delete(sym) do

0 commit comments

Comments
 (0)