Sha256: 6ecc4a89dd573b13b8ff1792abf136f97f9bdbfd5b7ebebd30617848b1e0150b
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true module KManager module Resources # Represents a JSON file resource. class JsonFileResource < KManager::Resources::FileResource def initialize(**opts) super(**opts) @type = :json end def load_document data = JSON.parse(content) document.data = data end # def debug # L.ostruct(KDsl::Util.data.to_struct(self.document.data)) # end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
k_manager-0.0.13 | lib/k_manager/resources/json_file_resource.rb |