Parent

Included Modules

Class Index [+]

Quicksearch

Nokogiri::XML::Namespace

Attributes

document[R]

Public Instance Methods

href click to toggle source

Get the href for this namespace

static VALUE href(VALUE self)
{
  xmlNsPtr ns;
  xmlDocPtr doc;

  Data_Get_Struct(self, xmlNs, ns);
  if(!ns->href) return Qnil;

  Data_Get_Struct(rb_iv_get(self, "@document"), xmlDoc, doc);

  return NOKOGIRI_STR_NEW2(ns->href);
}
prefix click to toggle source

Get the prefix for this namespace. Returns nil if there is no prefix.

static VALUE prefix(VALUE self)
{
  xmlNsPtr ns;
  xmlDocPtr doc;

  Data_Get_Struct(self, xmlNs, ns);
  if(!ns->prefix) return Qnil;

  Data_Get_Struct(rb_iv_get(self, "@document"), xmlDoc, doc);

  return NOKOGIRI_STR_NEW2(ns->prefix);
}

Private Instance Methods

inspect_attributes() click to toggle source
    # File lib/nokogiri/xml/namespace.rb, line 8
 8:       def inspect_attributes
 9:         [:prefix, :href]
10:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.