Class: Rbfs::Config
- Inherits:
-
Object
- Object
- Rbfs::Config
- Defined in:
- lib/rbfs/config.rb
Instance Method Summary collapse
-
#initialize(file_name = "/etc/rbfs.yml") ⇒ Config
constructor
A new instance of Config.
- #parse ⇒ Object
Constructor Details
#initialize(file_name = "/etc/rbfs.yml") ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/rbfs/config.rb', line 5 def initialize(file_name = "/etc/rbfs.yml") @file_name = file_name end |
Instance Method Details
#parse ⇒ Object
9 10 11 |
# File 'lib/rbfs/config.rb', line 9 def parse YAML.load(File.read(@file_name)) end |