Class: Memo::OS
- Inherits:
-
Object
- Object
- Memo::OS
- Defined in:
- lib/memo/os/os.rb
Instance Method Summary collapse
Instance Method Details
#exec(cmd) ⇒ Object
3 |
# File 'lib/memo/os/os.rb', line 3 def exec(cmd) = system(cmd) |
#write(path, text) ⇒ Object
5 6 7 8 9 |
# File 'lib/memo/os/os.rb', line 5 def write(path, text) ::File.open(path, "w") do |f| f.puts text end end |