Class: Node::BACK_REF

Inherits:
Node show all
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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#[], #_dump, _load, #address, #as_code, #as_expression, #as_paren_expression, #bytecode_compile, compile_string, define_code, define_expression, #eval, #flags, #inspect, #members, #nd_file, #nd_line, #nd_type, #pretty_print, #tree

Class Method Details

.membersObject

Return an array of strings containing the names of the node class’s members.



2076
2077
2078
2079
# File 'ext/nodeinfo.c', line 2076

VALUE node_s_members(VALUE klass)
{
  return rb_iv_get(klass, "__member__");
}

Instance Method Details

#cntObject

Return the Node’s cnt member. The return type is an Integer.



1580
1581
1582
1583
1584
1585
# File 'ext/nodeinfo.c', line 1580

static VALUE node_cnt(VALUE self)
{
  NODE * n;
  Data_Get_Struct(self, NODE, n);
  return LONG2NUM(n->nd_cnt);
}

#nthObject

Return the Node’s nth member. The return type is an Integer.



1832
1833
1834
1835
1836
1837
# File 'ext/nodeinfo.c', line 1832

static VALUE node_nth(VALUE self)
{
  NODE * n;
  Data_Get_Struct(self, NODE, n);
  return LONG2NUM(n->nd_nth);
}