Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/core/file.rb
Class Method Summary collapse
Class Method Details
.dump_object(object, path) ⇒ Object
3 4 5 |
# File 'lib/core/file.rb', line 3 def self.dump_object object, path write_data Marshal.dump(object), path end |
.write_data(data, path) ⇒ Object
7 8 9 |
# File 'lib/core/file.rb', line 7 def self.write_data data, path self.open(path, 'w') { |f| f << data } end |