Class: Ufo::Param
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize ⇒ Param
constructor
A new instance of Param.
- #template_scope ⇒ Object
Constructor Details
Instance Method Details
#data ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/ufo/param.rb', line 11 def data return {} unless File.exist?(@params_path) result = RenderMePretty.result(@params_path, context: template_scope) data = YAML.load(result) || {} data.deep_symbolize_keys end |