Skip to content
Snippets Groups Projects
Commit acaee035 authored by Markus Reiter's avatar Markus Reiter
Browse files

Add compatibility layer for `module Homebrew`.

parent 0ab750bf
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ require "compat/fails_with_llvm"
require "compat/tap"
require "compat/formula"
require "compat/formula_specialties"
require "compat/global"
require "compat/hardware"
require "compat/macos"
require "compat/md5"
......
module Homebrew
module_function
def method_missing(method, *args, &block)
if instance_methods.include?(method)
# odeprecated "#{self}##{method}", "'module_function' or 'def self.#{method}' to convert it to a class method"
return instance_method(method).bind(self).call(*args, &block)
end
super
end
def respond_to_missing?(method, include_private = false)
return true if method_defined?(method)
super(method, include_private)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment