module MacUtilinfo
Public Instance Methods
get_total_memory()
click to toggle source
# File lib/mac_utilinfo.rb, line 4 def get_total_memory memory_total_in_kb = `cat /proc/meminfo | grep -i 'MemTotal' | awk '{print $2 " " $3}'` return memory_total_in_kb end