Module: RD::RD2HTMLExtVisitor::HeadLineTitle

Defined in:
lib/rd/rd2html-ext-lib.rb

Overview

<H1> to <Title>

Instance Method Summary collapse

Instance Method Details

#apply_to_Headline(element, title) ⇒ Object



92
93
94
95
# File 'lib/rd/rd2html-ext-lib.rb', line 92

def apply_to_Headline(element, title)
  make_title(title)
  super
end

#make_title(title) ⇒ Object



85
86
87
88
89
90
# File 'lib/rd/rd2html-ext-lib.rb', line 85

def make_title(title)
  unless @headline_called || @title then
    @title = title.join.strip
    @headline_called = true
  end
end

#title_initObject



81
82
83
# File 'lib/rd/rd2html-ext-lib.rb', line 81

def title_init
  @headline_called = false
end