W
Wes Gamble
Ruby 1.8.2
I am trying to take advantage of a Rubygem named RubyfulSoup (a port of
the PHP BeautifulSoup module).
I have installed the gem correctly (it shows up when I do gem -list) and
my require_gem statement succeeds.
However, when I go to instantiate one of the classes defined in this
gem, the call fails with:
unitialized constant: BeautifulSoup
on line 4 of my test case below.
Here is my test case:
require 'rubygems'
require_gem 'rubyful_soup', '>= 1.0.4'
parser = BeautifulSoup.new(%{"kajsdlfkjads"})
Does anyone understand why the class name inside of the rubyful_soup.rb
file cannot be seen successfully?
Thanks,
Wes
I am trying to take advantage of a Rubygem named RubyfulSoup (a port of
the PHP BeautifulSoup module).
I have installed the gem correctly (it shows up when I do gem -list) and
my require_gem statement succeeds.
However, when I go to instantiate one of the classes defined in this
gem, the call fails with:
unitialized constant: BeautifulSoup
on line 4 of my test case below.
Here is my test case:
require 'rubygems'
require_gem 'rubyful_soup', '>= 1.0.4'
parser = BeautifulSoup.new(%{"kajsdlfkjads"})
Does anyone understand why the class name inside of the rubyful_soup.rb
file cannot be seen successfully?
Thanks,
Wes