module Asciidoctor::Converter::BackendTraits

Public Class Methods

derive_backend_traits(backend, basebackend = nil) click to toggle source

Deprecated: Use {Converter.derive_backend_traits} instead.

# File lib/asciidoctor/converter.rb, line 139
def self.derive_backend_traits backend, basebackend = nil
  Converter.derive_backend_traits backend, basebackend
end

Public Instance Methods

backend_info(basebackend = nil)
Alias for: backend_traits
backend_traits(basebackend = nil) click to toggle source
# File lib/asciidoctor/converter.rb, line 132
def backend_traits basebackend = nil
  @backend_traits ||= Converter.derive_backend_traits @backend, basebackend
end
Also aliased as: backend_info
basebackend(value = nil) click to toggle source
# File lib/asciidoctor/converter.rb, line 104
def basebackend value = nil
  value ? ((backend_traits value)[:basebackend] = value) : backend_traits[:basebackend]
end
filetype(value = nil) click to toggle source
# File lib/asciidoctor/converter.rb, line 108
def filetype value = nil
  value ? (backend_traits[:filetype] = value) : backend_traits[:filetype]
end
htmlsyntax(value = nil) click to toggle source
# File lib/asciidoctor/converter.rb, line 112
def htmlsyntax value = nil
  value ? (backend_traits[:htmlsyntax] = value) : backend_traits[:htmlsyntax]
end
init_backend_traits(value = nil) click to toggle source
# File lib/asciidoctor/converter.rb, line 128
def init_backend_traits value = nil
  @backend_traits = value || {}
end
outfilesuffix(value = nil) click to toggle source
# File lib/asciidoctor/converter.rb, line 116
def outfilesuffix value = nil
  value ? (backend_traits[:outfilesuffix] = value) : backend_traits[:outfilesuffix]
end
supports_templates(value = true) click to toggle source
# File lib/asciidoctor/converter.rb, line 120
def supports_templates value = true
  backend_traits[:supports_templates] = value
end
supports_templates?() click to toggle source
# File lib/asciidoctor/converter.rb, line 124
def supports_templates?
  backend_traits[:supports_templates]
end