Permalink
Browse files

I like ducks. Specially ducks who know how to cuack.

  • Loading branch information...
1 parent 112cfa7 commit 9dad30b322a6df380be7a6f1a709df4f23376de2 @foca foca committed with Oct 25, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 scraper.rb
View
@@ -89,7 +89,7 @@ def initialize_plural_accessors
end
def self.convert_document(doc)
- if String === doc or IO === doc or %w[Tempfile StringIO].include? doc.class.name
+ unless doc.respond_to?(:at) && doc.respond_to?(:search)
require 'nokogiri' unless defined? ::Nokogiri
Nokogiri doc
else

0 comments on commit 9dad30b

Please sign in to comment.