Class: Skap::YAMLFile
- Inherits:
-
Object
- Object
- Skap::YAMLFile
- Defined in:
- lib/skap/yaml_file.rb
Overview
Common class for reading & updating YAML files.
Direct Known Subclasses
Class Attribute Summary collapse
-
.file_name ⇒ Object
Returns the value of attribute file_name.
Instance Method Summary collapse
-
#initialize ⇒ YAMLFile
constructor
A new instance of YAMLFile.
Constructor Details
#initialize ⇒ YAMLFile
Returns a new instance of YAMLFile.
11 12 13 |
# File 'lib/skap/yaml_file.rb', line 11 def initialize @file = load_file end |
Class Attribute Details
.file_name ⇒ Object
Returns the value of attribute file_name.
6 7 8 |
# File 'lib/skap/yaml_file.rb', line 6 def file_name @file_name end |