Class: Cuboid::System::Platforms::OSX
- Includes:
- Mixins::Unix
- Defined in:
- lib/cuboid/system/platforms/osx.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#memory_free ⇒ Integer
Amount of free RAM in bytes.
Methods inherited from Base
#_exec, #cpu_count, #disk_directory, #disk_space_for_process, #disk_space_free, inherited, #memory_for_process_group
Class Method Details
Instance Method Details
#memory_free ⇒ Integer
Returns Amount of free RAM in bytes.
12 13 14 |
# File 'lib/cuboid/system/platforms/osx.rb', line 12 def memory_free pagesize * memory.free end |