Module Premailer::Adapter
In: lib/premailer/adapter/nokogiri.rb
lib/premailer/adapter/hpricot.rb
lib/premailer/adapter.rb

Manages the adapter classes. Currently supports:

  • nokogiri
  • hpricot

Methods

default   find   use   use=  

Classes and Modules

Module Premailer::Adapter::Hpricot
Module Premailer::Adapter::Nokogiri

Constants

REQUIREMENT_MAP = [ ["hpricot", :hpricot], ["nokogiri", :nokogiri], ]   adapter to required file mapping.

Public Class methods

The default adapter based on what you currently have loaded and installed. First checks to see if any adapters are already loaded, then checks to see which are installed if none are loaded. @raise [RuntimeError] unless suitable adapter found.

Returns an adapter. @raise [ArgumentError] unless the adapter exists.

Returns the adapter to use.

Sets the adapter to use. @raise [ArgumentError] unless the adapter exists.

[Validate]