module Asciidoctor::Converter::Config

def register_for *backends

Returns nothing

backends - A String Array of backends with which to associate this {Converter} class.

the class is registered to convert a specified backend.
This method also defines the converts? method on the class which returns whether

{Factory Converter::Factory} to handle conversion to the specified backends.
Public: Statically registers the current {Converter} class with the default
def register_for *backends
  Factory.register self, backends
  metaclass = class << self; self; end
  if backends == ['*']
    metaclass.send :define_method, :converts? do |name|
      true
    end
  else
    metaclass.send :define_method, :converts? do |name|
      backends.include? name
    end
  end
  nil
end