class Nokogiri::HTML5::Document
def read_memory(string, url = nil, encoding = nil, **options)
Create a new document from a String.
def read_memory(string, url = nil, encoding = nil, **options) raise ArgumentError, "string object doesn't respond to :to_str" unless string.respond_to?(:to_str) do_parse(string, url, encoding, options) end