Class: Automux::Library::YamlParser

Inherits:
Object
  • Object
show all
Defined in:
lib/automux/library/yaml_parser.rb

Class Method Summary collapse

Class Method Details

.load_file(file) ⇒ Object



8
9
10
11
12
# File 'lib/automux/library/yaml_parser.rb', line 8

def load_file(file)
  data_string = File.read(file)
  opts_replaced_string = replace_opts_with_user_input(data_string)
  YAML.load(opts_replaced_string)
end