Sha256: d654ffc2d39b7ba7bf991398b8990e9201153fe0c0ab4fc07c5b6ebeb8386af2
Contents?: true
Size: 438 Bytes
Versions: 4
Compression:
Stored size: 438 Bytes
Contents
require 'pdk/config/namespace' module PDK class Config class JSON < Namespace def parse_data(data, _filename) return {} if data.nil? || data.empty? require 'json' ::JSON.parse(data) rescue ::JSON::ParserError => e raise PDK::Config::LoadError, e.message end def serialize_data(data) require 'json' ::JSON.pretty_generate(data) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pdk-1.13.0 | lib/pdk/config/json.rb |
pdk-1.12.0 | lib/pdk/config/json.rb |
pdk-1.11.1 | lib/pdk/config/json.rb |
pdk-1.11.0 | lib/pdk/config/json.rb |