mirror of
https://github.com/internetee/registry.git
synced 2025-07-27 04:58:29 +02:00
5 lines
No EOL
251 B
Ruby
5 lines
No EOL
251 B
Ruby
if !File.respond_to?(:exist?) && File.respond_to?(:exists?)
|
|
File.singleton_class.send(:alias_method, :exist?, :exists?)
|
|
elsif !File.respond_to?(:exists?) && File.respond_to?(:exist?)
|
|
File.singleton_class.send(:alias_method, :exists?, :exist?)
|
|
end |