Method: Webby::Filters::Tidy#initialize
- Defined in:
- lib/webby/filters/tidy.rb
#initialize(str) ⇒ Tidy
call-seq:
Tidy.new( html )
Create a new filter that will process the given html through the tidy program.
27 28 29 30 31 32 33 34 35 |
# File 'lib/webby/filters/tidy.rb', line 27 def initialize( str ) @log = ::Logging::Logger[self] @str = str # create a temporary file for holding any error messages # from the tidy program @err = Tempfile.new('tidy_err') @err.close end |