This has happened before. It goes DIRECTLY AGAINST the gem’s usage documentation.
Even though I do this:
require 'htmlentities'
and then THIS:
coder = HTMLEntities.new
yields the following message:
undefined method `new' for HTMLEntities:Module
NO! NO NO NO NO NO! HTMLEntities is a CLASS. It is NOT a module.
What in the hell is going on here? All of my reports code is broken now!
I am using rvm. I scoured my project gem directory and the global gem directory. There is NO other occurrence of HTMLEntities other than in this gem.
IRB BEHAVIOR:
In irb, if I do:
require 'ruby gems'
and:
require 'htmlentities'
then the call to HTMLEntities.new works just fine.
Somebody please help.
Oh great, it looks like one of my programmers is also “helping” me. By putting adding a non-standard module in “vendor/plugins”. And it appears that it has the name “HTMLEntities”.