Method: Mool::Command.swap
- Defined in:
- lib/mool/command.rb
.swap(lname = nil) ⇒ Object
30 31 32 33 |
# File 'lib/mool/command.rb', line 30 def self.swap(lname = nil) result = File.read('/proc/swaps') lname.present? ? result[/#{lname} /] : result end |