require 'json_schema_tools' require 'doctag_json_schema' module DocTag class << self # initialize class structure from json schema # @example # DocTag.init # doc = DocTag::Document.new # doc.number = '4711' # doc.valid? def init reader = SchemaTools::Reader.new SchemaTools::KlassFactory.build namespace: DocTag, reader: reader, path: DocTag::Schema.path end end end