Method: IsoDoc::Function::Blocks#recommendation_name

Defined in:
lib/isodoc/function/reqt.rb

#recommendation_name(node, out, type) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/isodoc/function/reqt.rb', line 8

def recommendation_name(node, out, type)
  label, title, lbl = recommendation_labels(node)
  out.p **{ class: "RecommendationTitle" }  do |b|
    b << (lbl.nil? ? l10n("#{type}:") : l10n("#{type} #{lbl}:"))
    if label || title
      b.br
      label and label.children.each { |n| parse(n,b) }
      b << "#{clausedelim} " if label && title
      title and title.children.each { |n| parse(n,b) }
    end
  end
end