module Asciidoctor::Diagram::BarcodeProcessor

Public Class Methods

check_config(config = {}) click to toggle source
# File lib/asciidoctor-diagram/barcode/extension.rb, line 7
def self.check_config(config = {})
  type = config[:type]
  raise "Barcode type not specified in config" if type.nil?
  raise "Unsupported barcode type: '#{type}'" unless BarcodeConverter::BARCODE_TYPES.include?(type)
end
new(name = nil, config = {}) click to toggle source
Calls superclass method
# File lib/asciidoctor-diagram/barcode/extension.rb, line 13
def initialize(name = nil, config = {})
  super
  BarcodeProcessor.check_config(config)
end