| Path: | README.rdoc |
| Last Update: | Wed Apr 06 21:01:21 +0000 2011 |
I wanna clean and simple tidy library. For example:
TidyFFI::Tidy.new('a string').clean
For now it can‘t do anything else than clean (and saves errors from it) :)
You can use different ways to set up options. These examples are produces the same output:
TidyFFI::Tidy.default_options.show_body_only = true
TidyFFI::Tidy.new('test').clean
TidyFFI::Tidy.with_options(:show_body_only => true).new('test').clean
tidy = TidyFFI::Tidy.new('test')
tidy.options.show_body_only = true
tidy.clean
TidyFFI::Tidy.new('test', :show_body_only => true).clean
TidyFFI::Tidy.clean('test', :show_body_only => 1)