Class: Ron::RoffFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/ron/roff.rb

Instance Method Summary collapse

Constructor Details

#initialize(html, name, section, tagline, manual = nil, version = nil, date = nil) ⇒ RoffFilter

Convert Ron HTML to roff.



6
7
8
9
10
11
# File 'lib/ron/roff.rb', line 6

def initialize(html, name, section, tagline, manual=nil, version=nil, date=nil)
  @buf = []
  title_heading name, section, tagline, manual, version, date
  block_filter(Nokogiri::HTML.fragment(html))
  write "\n"
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/ron/roff.rb', line 13

def to_s
  @buf.join
end