Sha256: d6378fb422e361760450c9bd6706ad74860c8c64f8cc5cae1fde4645affec0f4
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true SelfData.default_formats = [:erb, :yaml] SelfData.default_options = {} 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.2.0 | lib/self_data/config.rb |