Sha256: 88113ab7b03054675ddbb0d695de57607c5590fe1036c73fa15ed1079754110d
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
module CPU module Shared # Returns the number of processors in this computer def num_processors if @num_processors @num_processors else CPU.num_processors end end attr_writer :num_processors # Returns the number of cores in this computer def num_cores if @num_cores @num_cores else CPU.num_cores end end attr_writer :num_cores end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cpu-0.0.0 | lib/cpu/shared.rb |