Class: CBETA::HTMLToText
- Inherits:
-
Object
- Object
- CBETA::HTMLToText
- Defined in:
- lib/cbeta/html_to_text.rb
Overview
Instance Method Summary collapse
- #convert(arg) ⇒ Object
-
#initialize(html_root, out_root) ⇒ HTMLToText
constructor
A new instance of HTMLToText.
Constructor Details
#initialize(html_root, out_root) ⇒ HTMLToText
Returns a new instance of HTMLToText.
13 14 15 16 |
# File 'lib/cbeta/html_to_text.rb', line 13 def initialize(html_root, out_root) @html_root = html_root @out_root = out_root end |
Instance Method Details
#convert(arg) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/cbeta/html_to_text.rb', line 21 def convert(arg) @dirty = false @vol = arg.upcase @corpus = @vol[0] handle_vol end |