Method: Webby::Filters::BasePath#initialize

Defined in:
lib/webby/filters/basepath.rb

#initialize(str, mode) ⇒ BasePath

call-seq:

BasePath.new( html, mode )

Creates a new BasePath filter that will operate on the given html string. The mode is either ‘xml’ or ‘html’ and determines how Hpricot will handle the parsing of the input string.



44
45
46
47
# File 'lib/webby/filters/basepath.rb', line 44

def initialize( str, mode )
  @str = str
  @mode = mode.downcase.to_sym
end