| 
									
										
										
										
											2016-09-26 18:00:45 +02:00
										 |  |  | module Homebrew | 
					
						
							|  |  |  |   module_function | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   def method_missing(method, *args, &block) | 
					
						
							|  |  |  |     if instance_methods.include?(method) | 
					
						
							| 
									
										
										
										
											2017-04-22 16:28:07 +01:00
										 |  |  |       odeprecated "#{self}##{method}", "'module_function' or 'def self.#{method}' to convert it to a class method" | 
					
						
							| 
									
										
										
										
											2016-09-26 18:00:45 +02:00
										 |  |  |       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 |