Class: OdtHandlebars::OdtCleaner

Inherits:
Object
  • Object
show all
Defined in:
lib/odt_handlebars/odt_cleaner.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#cleanObject



15
16
17
18
# File 'lib/odt_handlebars/odt_cleaner.rb', line 15

def clean
  out=""
  scanstart(StringScanner.new(@content),out)
end