Method: Nokogiri::XML::Node#document?

Defined in:
lib/nokogiri/xml/node.rb

#document?Boolean

Returns true if this is a Document

Returns:

  • (Boolean)
[View source]

1229
1230
1231
# File 'lib/nokogiri/xml/node.rb', line 1229

def document?
  is_a?(XML::Document)
end