diff --git a/lib/pathname.rb b/lib/pathname.rb index 18c2e04..84feeb7 100644 --- a/lib/pathname.rb +++ b/lib/pathname.rb @@ -10,6 +10,8 @@ # For documentation, see class Pathname. # +return if RUBY_VERSION >= '4.1' + unless RUBY_VERSION >= '4' require 'pathname.so' if RUBY_ENGINE == 'ruby'