public
Fork of libc/tidy_ffi
Description: Tidy library interface via FFI
Homepage:
Clone URL: git://github.com/dominikh/tidy_ffi.git
name age message
file .gitignore Fri Mar 13 22:42:51 -0700 2009 renamed README into README.rdoc [libc]
file CHANGELOG Loading commit data...
file LICENSE Wed Feb 11 23:26:04 -0800 2009 Initial commit [libc]
file Manifest Sat Mar 14 10:33:50 -0700 2009 Updated Rakefile and Manifest to reflect README... [libc]
file README.rdoc Mon Mar 16 01:34:01 -0700 2009 Clean class method. [libc]
file Rakefile Sun Jun 07 08:45:17 -0700 2009 Fixes for the new version of FFI MemoryPointer... [libc]
directory lib/
directory test/
file tidy_ffi.gemspec
README.rdoc

Tidy FFI

What is it all about?

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) :)

Options

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)

Links