Class: Deplate::Formatter::DbkSlides

Inherits:
Docbook
  • Object
show all
Defined in:
lib/deplate/fmt/dbk-slides.rb

Overview

<TBD>Untested

Instance Method Summary collapse

Constructor Details

#initialize(deplate, args) ⇒ DbkSlides

Returns a new instance of DbkSlides.



18
19
20
21
# File 'lib/deplate/fmt/dbk-slides.rb', line 18

def initialize(deplate, args)
    @headings = ['foilgroup', 'foil']
    super
end

Instance Method Details

#get_doc_close(args) ⇒ Object



37
38
39
# File 'lib/deplate/fmt/dbk-slides.rb', line 37

def get_doc_close(args)
    return '</slides>'
end

#get_doc_head_close(args) ⇒ Object



45
46
47
# File 'lib/deplate/fmt/dbk-slides.rb', line 45

def get_doc_head_close(args)
    return '</slidesinfo>'
end

#get_doc_head_open(args) ⇒ Object



41
42
43
# File 'lib/deplate/fmt/dbk-slides.rb', line 41

def get_doc_head_open(args)
    return '<slidesinfo>'
end

#get_doc_open(args) ⇒ Object

Document skeleton



28
29
30
31
32
33
34
35
# File 'lib/deplate/fmt/dbk-slides.rb', line 28

def get_doc_open(args)
    o = []
    lang = @deplate.options.messages.prop('lang', self)
    if lang
        o << %{ lang="#{lang}"}
    end
    return "<slides#{o.join}>"
end

#setupObject



23
24
25
# File 'lib/deplate/fmt/dbk-slides.rb', line 23

def setup
    @deplate.variables['dbkClass'] ||= 'slides'
end