2 ms·
It's not straightforward to prevent the original name from existing, though you can play games with File.read() and class_eval, but if you just want it to be av
by vidarh 1y ago
It's not straightforward to prevent the original name from existing, though you can play games with File.read() and class_eval, but if you just want it to be available under a different name, and don't mind that the old one is there too, you can just do:
require 'foo'
module MyPreferredNamespace
include Foo
end