Class: Ron::RoffFilter
- Inherits:
-
Object
- Object
- Ron::RoffFilter
- Defined in:
- lib/ron/roff.rb
Instance Method Summary collapse
-
#initialize(html, name, section, tagline, manual = nil, version = nil, date = nil) ⇒ RoffFilter
constructor
Convert Ron HTML to roff.
- #to_s ⇒ Object
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_s ⇒ Object
13 14 15 |
# File 'lib/ron/roff.rb', line 13 def to_s @buf.join end |