Sha256: 10b298208fc4df933de9c028b6ce823c79a2b8a431f86b44e48dd66f3c81ae1e
Contents?: true
Size: 928 Bytes
Versions: 5
Compression:
Stored size: 928 Bytes
Contents
# frozen_string_literal: true require 'rubygems' require 'zip' require 'nokogiri' require_relative 'logger' require_relative 'builder/version' require_relative 'builder/decoder' require_relative 'builder/encoder' require_relative 'builder/cleaners' require_relative 'builder/xml_processor' require_relative 'builder/template' require_relative 'builder/configuration' module Docx # Main module of the gem # # @example configuring string placeholder # Docx::Builder.configure do |config| # config.null_placeholder = 'XXXX' # end # # @example configuring log level # Docx::Builder.configure do |config| # config.logger.level = 1 #info # end module Builder class << self def configuration @configuration ||= Configuration.new end def logger configuration.logger end def configure yield(configuration) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems