Class: HashProcessor
- Inherits:
-
Object
- Object
- HashProcessor
- Includes:
- Singleton
- Defined in:
- lib/text_interpolator/hash_processor.rb
Instance Method Summary collapse
Instance Method Details
#process(hash) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/text_interpolator/hash_processor.rb', line 6 def process hash errors = {} content = interpolate_system_variables(hash) var_table = build_variables_table(content) # one-dimensional collection of variables result = interpolate_variables(content, var_table, errors) [result, errors] end |