Class: FileSetWorks::YAMLFile
- Inherits:
-
File
- Object
- FilesetItem
- File
- FileSetWorks::YAMLFile
- Defined in:
- lib/fileset.rb
Instance Attribute Summary
Attributes inherited from File
Instance Method Summary collapse
-
#load(file) ⇒ Object
TODO: YAML::Stream.
- #store(file) ⇒ Object
Methods inherited from File
Methods inherited from FilesetItem
#create_in, #default_populator, #initialize, #populate
Constructor Details
This class inherits a constructor from FileSetWorks::File
Instance Method Details
#load(file) ⇒ Object
TODO: YAML::Stream
131 132 133 134 |
# File 'lib/fileset.rb', line 131 def load(file) @contents = YAML::load(file) return @contents end |
#store(file) ⇒ Object
136 137 138 |
# File 'lib/fileset.rb', line 136 def store(file) YAML::dump(@contents, file) end |