Add MacOS.lion? for MACOS_VERSION == 10.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
		
							parent
							
								
									72889ea6a8
								
							
						
					
					
						commit
						e3e7831b48
					
				@ -8,7 +8,7 @@ class Tty
 | 
			
		||||
    def yellow; underline 33 ; end
 | 
			
		||||
    def reset; escape 0; end
 | 
			
		||||
    def em; underline 39; end
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
  private
 | 
			
		||||
    def color n
 | 
			
		||||
      escape "0;#{n}"
 | 
			
		||||
@ -330,6 +330,10 @@ module MacOS extend self
 | 
			
		||||
    10.6 <= MACOS_VERSION # Actually Snow Leopard or newer
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def lion?
 | 
			
		||||
    10.7 == MACOS_VERSION
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def prefer_64_bit?
 | 
			
		||||
    Hardware.is_64_bit? and 10.6 <= MACOS_VERSION
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user