 13488183bd
			
		
	
	
		13488183bd
		
	
	
	
	
		
			
			Since this hack is no longer required, and `Emoji.tick` and `.cross` are only called in one place, I think it's better to just inline them there rather than having methods on `Emoji` that just return a one-character String.
		
			
				
	
	
		
			15 lines
		
	
	
		
			236 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			236 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| module Emoji
 | |
|   class << self
 | |
|     def install_badge
 | |
|       ENV["HOMEBREW_INSTALL_BADGE"] || "🍺"
 | |
|     end
 | |
| 
 | |
|     def enabled?
 | |
|       !ENV["HOMEBREW_NO_EMOJI"]
 | |
|     end
 | |
|     alias generic_enabled? enabled?
 | |
|   end
 | |
| end
 | |
| 
 | |
| require "extend/os/emoji"
 |