Top Level Namespace

Defined Under Namespace

Modules: Pastis

Instance Method Summary collapse

Instance Method Details

#Hpricot(*args) ⇒ Object

:nodoc:



7
8
9
10
11
12
13
14
15
16
# File 'lib/pastis.rb', line 7

def Hpricot(*args) #:nodoc:
  # load hpricot on demand
  begin
    require 'hpricot'
  rescue LoadError
    require 'rubygems'
    gem 'hpricot'
  end
  Kernel.send(:Hpricot, *args)
end