Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/putio_fs/put_dir.rb
Class Method Summary collapse
Class Method Details
.append(filename, str) ⇒ Object
8 9 10 11 12 |
# File 'lib/putio_fs/put_dir.rb', line 8 def append(filename,str) open(filename,"a") do |f| f << str end end |
.create(filename, str) ⇒ Object
3 4 5 6 7 |
# File 'lib/putio_fs/put_dir.rb', line 3 def create(filename,str) open(filename,"w") do |f| f << str end end |
.pp(filename, obj) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/putio_fs/put_dir.rb', line 13 def pp(filename,obj) require 'pp' open(filename,"w") do |f| PP.pp obj,f end end |