Sha256: 0950453fee41d99f3323c33525d39d63e2ef82cb942e514e6955dac83933853c
Contents?: true
Size: 281 Bytes
Versions: 10
Compression:
Stored size: 281 Bytes
Contents
require 'json' class Json < String; end # just so that we know which importer to run class JsonImporter attr_accessor :result, :type def initialize(type) @type = type @result = {} end def import(json_text) @result = JSON.parse(json_text) end end
Version data entries
10 entries across 10 versions & 1 rubygems