Module: IsoDoc::Ribose::BaseConvert
- Included in:
- HtmlConvert, PdfConvert, WordConvert
- Defined in:
- lib/isodoc/ribose/base_convert.rb
Instance Method Summary collapse
- #clausedelim ⇒ Object
- #configuration ⇒ Object
- #executivesummary(clause, out) ⇒ Object
- #is_clause?(name) ⇒ Boolean
- #sections_names ⇒ Object
Instance Method Details
#clausedelim ⇒ Object
25 26 27 |
# File 'lib/isodoc/ribose/base_convert.rb', line 25 def clausedelim "" end |
#configuration ⇒ Object
29 30 31 |
# File 'lib/isodoc/ribose/base_convert.rb', line 29 def configuration Metanorma::Ribose.configuration end |
#executivesummary(clause, out) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/isodoc/ribose/base_convert.rb', line 4 def executivesummary(clause, out) title_attr = { class: "IntroTitle" } page_break(out) out.div class: "Section3", id: clause["id"] do |div| clause_name(clause, clause&.at(ns("./fmt-title")), div, title_attr) clause.elements.each do |e| parse(e, div) unless e.name == "fmt-title" end end end |
#is_clause?(name) ⇒ Boolean
19 20 21 22 23 |
# File 'lib/isodoc/ribose/base_convert.rb', line 19 def is_clause?(name) return true if name == "executivesummary" super end |
#sections_names ⇒ Object
15 16 17 |
# File 'lib/isodoc/ribose/base_convert.rb', line 15 def sections_names super << "executivesummary" end |