/*
* Return the Node's _cpath_ member. The return type is
* either a Node or an Object.
*/
static VALUE node_cpath(VALUE self)
{
NODE * n;
Data_Get_Struct(self, NODE, n);
if(TYPE(n->nd_cpath) == T_NODE)
{
if(0 && nd_type(n) == NODE_OP_ASGN2)
{
return wrap_node_as(
(NODE *)n->nd_cpath,
rb_cNodeSubclass[NODE_OP_ASGN2_ARG]);
}
else
{
return wrap_node((NODE *)n->nd_cpath);
}
}
else
{
return (VALUE)n->nd_cpath;
}
}