Sha256: 1c88b26c4ed411597d5af3831dbea30ab5b5661e40ced280b43eb984789dd373
Contents?: true
Size: 426 Bytes
Versions: 14
Compression:
Stored size: 426 Bytes
Contents
require 'yaml' module Ufo class Param extend Memoist def initialize @params_path = "#{Ufo.root}/.ufo/params.yml" end 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 memoize :data def template_scope self end end end
Version data entries
14 entries across 14 versions & 1 rubygems