We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b63d44 commit af973b0Copy full SHA for af973b0
1 file changed
lib/pathname.rb
@@ -10,6 +10,24 @@
10
# For documentation, see class Pathname.
11
#
12
13
+if defined?(::Pathname) # Clear builtin Pathname
14
+ # :stopdoc:
15
+ class ::Object
16
+ remove_const :Pathname
17
+ end
18
+
19
+ # Remove module_function Pathname
20
+ class << ::Kernel
21
+ undef Pathname
22
23
+ module ::Kernel
24
25
26
27
+ $".delete('pathname.so')
28
+ # :startdoc:
29
+end
30
31
require 'pathname.so'
32
33
class Pathname
0 commit comments