Permalink
Browse files

Add new aliases for SystemInfo.num_*processors

  • Loading branch information...
1 parent d8fc7aa commit d5ac9c02ce4f2e3d8060699c91b7fe71b1759253 @ferrous26 ferrous26 committed Feb 3, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/accessibility/system_info.rb
View
2 lib/accessibility/system_info.rb
@@ -138,6 +138,7 @@ def uptime
def num_processors
NSProcessInfo.processInfo.processorCount
end
+ alias_method :number_of_processors, :num_processors
##
# Number of CPUs the system current has enabled
@@ -150,6 +151,7 @@ def num_processors
def num_active_processors
NSProcessInfo.processInfo.activeProcessorCount
end
+ alias_method :number_of_active_processors, :num_active_processors
##
# Total amount of memory for the system, in bytes

0 comments on commit d5ac9c0

Please sign in to comment.