class Nokogiri::XML::ElementDecl
Public Instance Methods
content
click to toggle source
The allowed content for this ElementDecl
static VALUE content(VALUE self) { xmlElementPtr node; Noko_Node_Get_Struct(self, xmlElement, node); if (!node->content) { return Qnil; } return noko_xml_element_content_wrap( rb_funcall(self, id_document, 0), node->content ); }
element_type
click to toggle source
The element_type
static VALUE element_type(VALUE self) { xmlElementPtr node; Noko_Node_Get_Struct(self, xmlElement, node); return INT2NUM(node->etype); }
inspect()
click to toggle source
# File lib/nokogiri/xml/element_decl.rb, line 10 def inspect "#<#{self.class.name}:#{format("0x%x", object_id)} #{to_s.inspect}>" end
prefix
click to toggle source
The namespace prefix for this ElementDecl
static VALUE prefix(VALUE self) { xmlElementPtr node; Noko_Node_Get_Struct(self, xmlElement, node); if (!node->prefix) { return Qnil; } return NOKOGIRI_STR_NEW2(node->prefix); }