Top Level Namespace
Defined Under Namespace
Classes: Converter
Instance Method Summary collapse
Instance Method Details
#number_of_processors ⇒ Object
25 26 27 28 |
# File 'lib/bconv.rb', line 25 def number_of_processors raise "Can't determine 'number_of_processors' for '#{RUBY_PLATFORM}'" unless RUBY_PLATFORM =~ /linux/ %x[cat /proc/cpuinfo | grep processor | wc -l].to_i end |