Class: YamlSmoosher

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

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path_to_folder) ⇒ YamlSmoosher

Returns a new instance of YamlSmoosher.



14
15
16
# File 'lib/yaml_smoosher.rb', line 14

def initialize(path_to_folder)
  @path_to_folder = path_to_folder
end

Class Method Details

.call(args) ⇒ Object



9
10
11
# File 'lib/yaml_smoosher.rb', line 9

def call(args)
  new(args).call
end

Instance Method Details

#callObject



18
19
20
21
22
23
24
25
# File 'lib/yaml_smoosher.rb', line 18

def call
  result = {}

  parse_yaml_files(result)
  parse_yaml_erb_files(result)

  result
end