lib/self_data/config.rb in self_data-0.1.1 vs lib/self_data/config.rb in self_data-1.0.0

- old
+ new

@@ -2,5 +2,6 @@ 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) }