Module: IsoDoc::Ribose::BaseConvert

Included in:
HtmlConvert, WordConvert
Defined in:
lib/isodoc/ribose/base_convert.rb

Instance Method Summary collapse

Instance Method Details

#clausedelimObject



22
23
24
# File 'lib/isodoc/ribose/base_convert.rb', line 22

def clausedelim
  ""
end

#executivesummary(docxml, out) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/isodoc/ribose/base_convert.rb', line 4

def executivesummary(docxml, out)
  f = docxml.at(ns("//executivesummary")) || return
  title_attr = { class: "IntroTitle" }
  page_break(out)
  out.div **{ class: "Section3", id: f["id"] } do |div|
    clause_name(nil, f&.at(ns("./title")), div, title_attr)
    f.elements.each do |e|
      parse(e, div) unless e.name == "title"
    end
  end
end

#is_clause?(name) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
19
20
# File 'lib/isodoc/ribose/base_convert.rb', line 16

def is_clause?(name)
  return true if name == "executivesummary"

  super
end