Class TidyFFI::Tidy
In: lib/tidy_ffi/tidy.rb
Parent: Object

Clean and simple interface to Tidy

Methods

Classes and Modules

Class TidyFFI::Tidy::InvalidOptionName
Class TidyFFI::Tidy::InvalidOptionValue

Constants

OptionsContainer = TidyFFI::OptionsContainer

Attributes

validate_options  [W] 

Public Class methods

Returns cleaned string

Default options for tidy. Works just like options method

Default options for tidy. Works just like options= method

Initializing object.

When true it validates name and option type (default is true).

Returns a proxy class with options. Example:

  TidyFFI::Tidy.with_options(:show_body_only => true).with_options(:wrap_asp => true).new('test)

Public Instance methods

Returns cleaned string

Returns errors for string

Proxy for options. Supports set and get

  tidy.options.show_body_only #=> nil
  tidy.options.show_body_only = true
  tidy.options.show_body_only #=> true

Assigns options for tidy. It merges options, not deletes old ones.

  tidy.options= {:wrap_asp => true}
  tidy.options= {:show_body_only => true}

Will send to tidy both options.

[Validate]