Class: Node::ATTRSET
- Defined in:
- ext/cached/ruby-1.8.4/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.4/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.5/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.5/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.6/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.6/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.7/internal/node/nodeinfo.c,
ext/cached/ruby-1.8.7/internal/node/nodeinfo.c,
ext/cached/ruby-1.9.1/internal/node/nodeinfo.c,
ext/cached/ruby-1.9.1/internal/node/nodeinfo.c
Overview
A placeholder for an attribute writer method, which can added to a class by using attr_writer:
attr_writer :attribute
Its reader counterpart is IVAR.
Class Method Summary collapse
-
.members ⇒ Array
Return an array of strings containing the names of the node class’s members.
Instance Method Summary collapse
-
#vid ⇒ Object
Return the Node’s vid member.
Methods inherited from Node
#[], #_dump, _load, #address, #bytecode_compile, compile_string, #eval, #flags, #inspect, #members, #nd_file, #nd_line, #nd_type, #obfusc, #pretty_print, #swap, #to_a, #tree, type
Class Method Details
.members ⇒ Array
Return an array of strings containing the names of the node class’s members.
2897 2898 2899 2900 |
# File 'ext/cached/ruby-1.8.4/internal/node/nodeinfo.c', line 2897 VALUE node_s_members(VALUE klass) { return rb_iv_get(klass, "__member__"); } |
Instance Method Details
#vid ⇒ Object
Return the Node’s vid member. The return type is a Symbol.
2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 |
# File 'ext/cached/ruby-1.8.4/internal/node/nodeinfo.c', line 2872 static VALUE node_vid(VALUE self) { NODE * n; Data_Get_Struct(self, NODE, n); if(n->nd_vid == 0) { return Qfalse; } else if(n->nd_vid == 1) { return Qtrue; } else { return ID2SYM(n->nd_vid); } } |