Skip to content

Commit

Permalink
Merge pull request #140 from mfilej/send
Browse files Browse the repository at this point in the history
Use __send__ instead of send
  • Loading branch information
fxn committed Oct 29, 2020
2 parents 60021d9 + cce3c39 commit 26f232e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/zeitwerk/loader.rb
Expand Up @@ -777,13 +777,13 @@ def raise_if_conflicting_directory(dir)

# @sig (Module, Symbol) -> void
def unload_autoload(parent, cname)
parent.send(:remove_const, cname)
parent.__send__(:remove_const, cname)
log("autoload for #{cpath(parent, cname)} removed") if logger
end

# @sig (Module, Symbol) -> void
def unload_cref(parent, cname)
parent.send(:remove_const, cname)
parent.__send__(:remove_const, cname)
log("#{cpath(parent, cname)} unloaded") if logger
end
end
Expand Down

0 comments on commit 26f232e

Please sign in to comment.