Sha256: 613a3696bf8fd34b56c5a2aca29ac3930886b6e3fabbbdf4e2948aaae90c5dc0

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doctag-0.0.3 lib/doc_tag.rb