class Nokogiri::HTML5::Document
def read_io(io, url_ = nil, encoding_ = nil, url: url_, encoding: encoding_, **options)
Create a new document from an IO object.
def read_io(io, url_ = nil, encoding_ = nil, url: url_, encoding: encoding_, **options) raise ArgumentError, "io object doesn't respond to :read" unless io.respond_to?(:read) do_parse(io, url, encoding, **options) end