
Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
17 lines
475 B
Ruby
17 lines
475 B
Ruby
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
|