Determines if Nokogiri is available and if it's a minimum acceptable version.
# File lib/rex/parser/nokogiri_doc_mixin.rb, line 6 def self.load_nokogiri @nokogiri_loaded = false begin require 'nokogiri' major,minor = Nokogiri::VERSION.split(".")[0,2] if major.to_i >= 1 if minor.to_i >= 4 @nokogiri_loaded = true end end rescue LoadError => e @nokogiri_loaded = false @nokogiri_error = e end @nokogiri_loaded end
Generated with the Darkfish Rdoc Generator 2.