Sha256: 49a56c9576657c35a2a5dc68c15e7b1b1423a4ac03bb0c40802238bec5f83511
Contents?: true
Size: 934 Bytes
Versions: 3
Compression:
Stored size: 934 Bytes
Contents
require "metanorma" require "metanorma-generic" require "metanorma/bipm/processor" require "metanorma/bipm/converter" module Metanorma module Bipm def self.fonts_used { html: ["Times New Roman", "STIX", "Courier New"], pdf: ["Arial", "Times New Roman", "Work Sans", "STIX"] } end class Configuration < Metanorma::Generic::Configuration def initialize(*args) super html_configs ||= File.join(File.expand_path('config', __dir__), 'bipm_html.yml') end end class << self extend Forwardable attr_accessor :configuration Configuration::CONFIG_ATTRS.each do |attr_name| def_delegator :@configuration, attr_name end def configure self.configuration ||= Configuration.new yield(configuration) end end configure {} end end Metanorma::Registry.instance.register(Metanorma::Bipm::Processor)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
metanorma-bipm-2.5.6 | lib/metanorma/bipm.rb |
metanorma-bipm-2.5.5 | lib/metanorma/bipm.rb |
metanorma-bipm-2.5.4 | lib/metanorma/bipm.rb |