Class: Gaston::Parse
- Inherits:
-
Object
- Object
- Gaston::Parse
- Defined in:
- lib/gaston/parse.rb
Instance Method Summary collapse
-
#initialize(files, env) ⇒ Parse
constructor
Initialize Parsing.
- #to_hash ⇒ Hash
Constructor Details
#initialize(files, env) ⇒ Parse
Initialize Parsing.
15 16 17 18 19 20 21 22 |
# File 'lib/gaston/parse.rb', line 15 def initialize(files, env) @env = env @hash = files.inject({}) do |hash, file| parse(file) h = deep_merge(hash, default_values) deep_merge(h, env_values) end end |
Instance Method Details
#to_hash ⇒ Hash
28 29 30 |
# File 'lib/gaston/parse.rb', line 28 def to_hash @hash end |