Method: Node::CREF#next

Defined in:
ext/nodeinfo.c,
ext/cached/ruby-1.6.3/nodeinfo.c,
ext/cached/ruby-1.6.4/nodeinfo.c,
ext/cached/ruby-1.6.5/nodeinfo.c,
ext/cached/ruby-1.6.7/nodeinfo.c,
ext/cached/ruby-1.6.8/nodeinfo.c,
ext/cached/ruby-1.8.0/nodeinfo.c,
ext/cached/ruby-1.8.1/nodeinfo.c,
ext/cached/ruby-1.8.2/nodeinfo.c,
ext/cached/ruby-1.8.3/nodeinfo.c,
ext/cached/ruby-1.8.4/nodeinfo.c,
ext/cached/ruby-1.8.5/nodeinfo.c,
ext/cached/ruby-1.8.6/nodeinfo.c

#nextObject

Return the Node’s next member. The return type is either a Node or an Object.



1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
# File 'ext/nodeinfo.c', line 1804

static VALUE node_next(VALUE self)
{
  NODE * n;
  Data_Get_Struct(self, NODE, n);

  if(TYPE(n->nd_next) == T_NODE)
  {
    return wrap_node((NODE *)n->nd_next);
  }
  else
  {
    return (VALUE)n->nd_next;
  }
}