Class: Node::MATCH3
- 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
-
.members ⇒ Object
Return an array of strings containing the names of the node class’s members.
Instance Method Summary collapse
-
#recv ⇒ Object
Return the Node’s recv member.
-
#value ⇒ Object
Return the Node’s value member.
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
.members ⇒ Object
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
#recv ⇒ Object
Return the Node’s recv member. The return type is either a Node or an Object.
1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 |
# File 'ext/nodeinfo.c', line 1877
static VALUE node_recv(VALUE self)
{
NODE * n;
Data_Get_Struct(self, NODE, n);
if(TYPE(n->nd_recv) == T_NODE)
{
return wrap_node((NODE *)n->nd_recv);
}
else
{
return (VALUE)n->nd_recv;
}
}
|
#value ⇒ Object
Return the Node’s value member. The return type is either a Node or an Object.
2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 |
# File 'ext/nodeinfo.c', line 2022
static VALUE node_value(VALUE self)
{
NODE * n;
Data_Get_Struct(self, NODE, n);
if(TYPE(n->nd_value) == T_NODE)
{
return wrap_node((NODE *)n->nd_value);
}
else
{
return (VALUE)n->nd_value;
}
}
|