Class: OdtHandlebars::OdtCleaner
- Inherits:
-
Object
- Object
- OdtHandlebars::OdtCleaner
- Defined in:
- lib/odt_handlebars/odt_cleaner.rb
Class Method Summary collapse
Instance Method Summary collapse
- #clean ⇒ Object
-
#initialize(content) ⇒ OdtCleaner
constructor
A new instance of OdtCleaner.
Constructor Details
#initialize(content) ⇒ OdtCleaner
Returns a new instance of OdtCleaner.
11 12 13 |
# File 'lib/odt_handlebars/odt_cleaner.rb', line 11 def initialize(content) @content=content end |
Class Method Details
.clean(content) ⇒ Object
7 8 9 |
# File 'lib/odt_handlebars/odt_cleaner.rb', line 7 def self.clean(content) new(content).clean end |
Instance Method Details
#clean ⇒ Object
15 16 17 18 |
# File 'lib/odt_handlebars/odt_cleaner.rb', line 15 def clean out="" scanstart(StringScanner.new(@content),out) end |