module Nokogiri
Experimental RBS support (using type sampling data from the type_fusion
project).
# sig/nokogiri.rbs module Nokogiri def self.jruby?: () -> nil def self.uses_libxml?: (?nil requirement) -> true end
def self.HTML5(input, url = nil, encoding = nil, **options, &block)
⚠ HTML5 functionality is not available when running JRuby.
Since v1.12.0
def self.HTML5(input, url = nil, encoding = nil, **options, &block) Nokogiri::HTML5::Document.parse(input, url, encoding, **options, &block) end
def self.jruby?
Experimental RBS support (using type sampling data from the type_fusion
project).
def self.jruby?: () -> nil
This signature was generated using 77 samples from 1 application.
def self.jruby? VersionInfo.instance.jruby? end
def self.libxml2_patches
def self.libxml2_patches if VersionInfo.instance.libxml2_using_packaged? Nokogiri::VERSION_INFO["libxml"]["patches"] else [] end end
def self.uses_gumbo?
def self.uses_gumbo? uses_libxml? # TODO: replace with Gumbo functionality end
def self.uses_libxml?(requirement = nil)
Experimental RBS support (using type sampling data from the type_fusion
project).
def self.uses_libxml?: (?nil requirement) -> true
This signature was generated using 25 samples from 1 application.
def self.uses_libxml?(requirement = nil) return false unless VersionInfo.instance.libxml2? return true unless requirement Gem::Requirement.new(requirement).satisfied_by?(VersionInfo.instance.loaded_libxml_version) end
def HTML4(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)
HTML4(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block) → Nokogiri::HTML4::Document
:call-seq:
def HTML4(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block) Nokogiri::HTML4::Document.parse(input, url, encoding, options, &block) end
def Slop(*args, &block)
assert_equal('second', doc.html.body.p[1].text)
eohtml