Sha256: ad3dca996d366817968a911b151415ac53f72be6ea5dfb9f74e45adfef5f81f5

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

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) }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
self_data-0.1.1 lib/self_data/config.rb
self_data-0.1.0 lib/self_data/config.rb