Sha256: dd5455254a34bc5935dbf6a3267df979a441f8dad192dbff26672b9b283c3264
Contents?: true
Size: 358 Bytes
Versions: 1
Compression:
Stored size: 358 Bytes
Contents
# frozen_string_literal: true SelfData.default_formats = [:erb, :yaml] SelfData.default_options = {} SelfData.filters = [] SelfData.add_converter :erb, -> (data, options) { ERB.new(data).result(options[:context]) } SelfData.add_converter :yaml, -> (data, _options) { YAML.load(data) } SelfData.add_converter :json, -> (data, _options) { JSON.parse(data) }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
self_data-1.1.0 | lib/self_data/config.rb |