 5dd8ead51a
			
		
	
	
		5dd8ead51a
		
			
		
	
	
	
	
		
			
			This naming has always been a bit weird and confusing so let's change it and provide a `compat` fallback for later deprecation.
		
			
				
	
	
		
			14 lines
		
	
	
		
			283 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			283 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| class Formula
 | |
|   module Compat
 | |
|     def installed?
 | |
|       # odeprecated "Formula#installed?",
 | |
|       #             "Formula#latest_version_installed? (or Formula#any_version_installed? )"
 | |
|       latest_version_installed?
 | |
|     end
 | |
|   end
 | |
| 
 | |
|   prepend Compat
 | |
| end
 |