Class: Nokogiri::XML::Document

Inherits:
Object
  • Object
show all
Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-xsd-1663b6f0e598/lib/rdf/xsd/extensions.rb

Instance Method Summary collapse

Instance Method Details

#doctypeObject



121
122
123
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-xsd-1663b6f0e598/lib/rdf/xsd/extensions.rb', line 121

def doctype
  self.children.first rescue false
end