diff --git a/Library/Homebrew/os/mac/mach.rb b/Library/Homebrew/os/mac/mach.rb index ad3e26ae16..4e7c86e98f 100644 --- a/Library/Homebrew/os/mac/mach.rb +++ b/Library/Homebrew/os/mac/mach.rb @@ -2,6 +2,10 @@ require "macho" require "os/mac/architecture_list" module MachOShim + extend Forwardable + + delegate [:dylib_id, :rpaths, :delete_rpath] => :macho + # @private def macho @macho ||= begin @@ -56,18 +60,6 @@ module MachOShim lcs.map(&:name).map(&:to_s).uniq end - def dylib_id - macho.dylib_id - end - - def rpaths - macho.rpaths - end - - def delete_rpath(rpath) - macho.delete_rpath(rpath) - end - def archs mach_data.map { |m| m.fetch :arch }.extend(ArchitectureListExtension) end