 2cbce1fbf0
			
		
	
	
		2cbce1fbf0
		
	
	
	
	
		
			
			Add more `odeprecated` calls to places that have been deprecated for a while in the wild and move some of the existing `odeprecated` calls to be `odisabled` to allow deleting the compatibility code.
		
			
				
	
	
		
			16 lines
		
	
	
		
			405 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			405 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| module Homebrew
 | |
|   module_function
 | |
| 
 | |
|   def method_missing(method, *args, &block)
 | |
|     if instance_methods.include?(method)
 | |
|       odisabled "#{self}##{method}", "'module_function' or 'def self.#{method}' to convert it to a class method"
 | |
|     end
 | |
|     super
 | |
|   end
 | |
| 
 | |
|   def respond_to_missing?(method, include_private = false)
 | |
|     return true if method_defined?(method)
 | |
|     super(method, include_private)
 | |
|   end
 | |
| end
 |