Class TidyFFI::Interface
In: lib/tidy_ffi/interface.rb
Parent: Object

Low level interface to libtidy.

Methods

Constants

LibTidy = TidyFFI::LibTidy

Public Class methods

Returns a hash that represents default options for tidy. Key for hash is the option name, value is also a hash… Possible values are:

  • :type - either :string, :integer, :boolean or :enum
  • :readonly?
  • :default - default value of an option
  • :values - possible values for :enum
  • :name

Returns true if value is valid for option and false otherwise.

Returns a TidyFFI::Interface with initialized interface.

Public Instance methods

Cleans string

clean_and_repair()

Alias for clean

Returns output from tidy library

repair()

Alias for clean

Sets string to tidy

Yields block with new buffer

[Validate]