Skip to content

Commit

Permalink
Revert "Stub for Refinement#import_methods"
Browse files Browse the repository at this point in the history
This reverts commit 3fb2b96ef6a3e61ed12db4d71ab46e3d06dadd29.
  • Loading branch information
eregon committed Nov 4, 2022
1 parent f7cbdd4 commit f35c11f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/ruby/truffleruby/core/module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,3 @@ def self.constants(inherited = undefined)
end
end
end

class Refinement < Module
def import_methods(mod)
(mod.instance_methods(false) + mod.private_instance_methods(false)).each do |name|
# TODO: apply refinements to these methods
define_method(name, mod.instance_method(name))
end
end
end

0 comments on commit f35c11f

Please sign in to comment.