Class: Skap::YAMLFile

Inherits:
Object
  • Object
show all
Defined in:
lib/skap/yaml_file.rb

Overview

Common class for reading & updating YAML files.

Direct Known Subclasses

Files::Menu, Files::Sources, Files::Versions

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeYAMLFile

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_nameObject

Returns the value of attribute file_name.



6
7
8
# File 'lib/skap/yaml_file.rb', line 6

def file_name
  @file_name
end