brew/Library/Homebrew/extend/os/pathname.rb
Maxim Belkin de0b93f912
pathname: improvements, cleanups, and new methods
- atomic_write: close file before renaming to prevent error:
  'Device or resource busy'
- ensure_writable: preserve executable bit
- new elf? and dynamic? methods
2017-11-07 14:18:25 -06:00

6 lines
117 B
Ruby

if OS.mac?
require "extend/os/mac/extend/pathname"
elsif OS.linux?
require "extend/os/linux/extend/pathname"
end