lib/rubyfocus/items/ranked_item.rb in rubyfocus-0.5.11 vs lib/rubyfocus/items/ranked_item.rb in rubyfocus-0.5.12

- old
+ new

@@ -15,10 +15,10 @@ end # Is this item contained within another? You may supply an object, string or integer ID, hash of properties, # or proc to run on each item. def contained_within?(object) - if [String, Fixnum, Hash, Proc].include?(object.class) + if [String, Integer, Hash, Proc].include?(object.class) document.find_all(object).any?{ |o| ancestry.include?(o) } else ancestry.include?(object) end end \ No newline at end of file