Module: ConfigVolumizer
- Defined in:
- lib/config_volumizer.rb,
lib/config_volumizer/parser.rb,
lib/config_volumizer/version.rb,
lib/config_volumizer/generator.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.3.0"
Class Method Summary collapse
-
.generate(data) ⇒ Hash
Generates a flattened config out of a data hash.
-
.parse(source, mapping) ⇒ Hash
Parses keys within the source hash matching base_name returning a hash with all the matched data under a string key matching the base_name.
Class Method Details
.generate(data) ⇒ Hash
Generates a flattened config out of a data hash
26 27 28 |
# File 'lib/config_volumizer.rb', line 26 def generate(data) Generator.generate(data) end |
.parse(source, mapping) ⇒ Hash
Parses keys within the source hash matching base_name returning a hash with all the matched data under a string key matching the base_name
16 17 18 |
# File 'lib/config_volumizer.rb', line 16 def parse(source, mapping) Parser.parse(source, mapping) end |