brew/Library/Homebrew/os/mac/pathname.rb
Martin Afanasjew 9cf2710dc9 os/mac/*_mach: move shared code into 'SharedMachO' (#282)
Both the `CctoolsMachO` and `RubyMachO` module implement a common set of
methods that simplify querying `mach_data`. Move these into a shared
module, that gets included after either of these implementations is
loaded and included in `Pathname`.
2016-05-27 23:13:51 +02:00

14 lines
229 B
Ruby

require "os/mac/shared_mach"
class Pathname
if ENV["HOMEBREW_RUBY_MACHO"]
require "os/mac/ruby_mach"
include RubyMachO
else
require "os/mac/cctools_mach"
include CctoolsMachO
end
include SharedMachO
end