Class: Kybus::Configuration::Loaders::YAML

Inherits:
Object
  • Object
show all
Defined in:
lib/kybus/configs/loaders/yaml.rb

Overview

Class for loading yaml files

Instance Method Summary collapse

Constructor Details

#initialize(path, manager) ⇒ YAML

Returns a new instance of YAML.



10
11
12
13
# File 'lib/kybus/configs/loaders/yaml.rb', line 10

def initialize(path, manager)
  @path = path
  @manager = manager
end

Instance Method Details

#load!Object

Parses and returns the file as a hash



16
17
18
# File 'lib/kybus/configs/loaders/yaml.rb', line 16

def load!
  ::YAML.load_file(@path)
end