| 
									
										
										
										
											2016-04-25 18:00:01 +01:00
										 |  |  | module Hardware | 
					
						
							| 
									
										
										
										
											2013-03-17 13:30:12 -05:00
										 |  |  |   class << self | 
					
						
							| 
									
										
										
										
											2016-07-16 22:15:42 +01:00
										 |  |  |     def is_32_bit? | 
					
						
							| 
									
										
										
										
											2018-01-09 19:52:34 +00:00
										 |  |  |       odisabled "Hardware.is_32_bit?", "Hardware::CPU.is_32_bit?" | 
					
						
							| 
									
										
										
										
											2013-03-17 13:30:12 -05:00
										 |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-07-16 22:15:42 +01:00
										 |  |  |     def is_64_bit? | 
					
						
							| 
									
										
										
										
											2018-01-09 19:52:34 +00:00
										 |  |  |       odisabled "Hardware.is_64_bit?", "Hardware::CPU.is_64_bit?" | 
					
						
							| 
									
										
										
										
											2013-03-17 13:30:12 -05:00
										 |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def bits | 
					
						
							| 
									
										
										
										
											2018-01-09 19:52:34 +00:00
										 |  |  |       odisabled "Hardware.bits", "Hardware::CPU.bits" | 
					
						
							| 
									
										
										
										
											2013-03-17 13:30:12 -05:00
										 |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def cpu_type | 
					
						
							| 
									
										
										
										
											2018-01-09 19:52:34 +00:00
										 |  |  |       odisabled "Hardware.cpu_type", "Hardware::CPU.type" | 
					
						
							| 
									
										
										
										
											2013-03-17 13:30:12 -05:00
										 |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def cpu_family | 
					
						
							| 
									
										
										
										
											2018-01-09 19:52:34 +00:00
										 |  |  |       odisabled "Hardware.cpu_family", "Hardware::CPU.family" | 
					
						
							| 
									
										
										
										
											2016-07-16 22:15:42 +01:00
										 |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def intel_family | 
					
						
							| 
									
										
										
										
											2018-01-09 19:52:34 +00:00
										 |  |  |       odisabled "Hardware.intel_family", "Hardware::CPU.family" | 
					
						
							| 
									
										
										
										
											2016-07-16 22:15:42 +01:00
										 |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def ppc_family | 
					
						
							| 
									
										
										
										
											2018-01-09 19:52:34 +00:00
										 |  |  |       odisabled "Hardware.ppc_family", "Hardware::CPU.family" | 
					
						
							| 
									
										
										
										
											2013-03-17 13:30:12 -05:00
										 |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def processor_count | 
					
						
							| 
									
										
										
										
											2018-01-09 19:52:34 +00:00
										 |  |  |       odisabled "Hardware.processor_count", "Hardware::CPU.cores" | 
					
						
							| 
									
										
										
										
											2013-03-17 13:30:12 -05:00
										 |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |