Class: Proc
- Inherits:
-
Object
- Object
- Proc
- Defined in:
- (unknown)
Instance Method Summary collapse
Instance Method Details
#body_node ⇒ Object
231 232 233 234 235 236 237 238 |
# File 'ext/rubynode_ext/rubynode_ext.c', line 231
static VALUE proc_body(VALUE proc) {
struct BLOCK * b;
if(ruby_safe_level >= 4) {
rb_raise(rb_eSecurityError, "Insecure: can't get proc body");
}
Data_Get_Struct(proc, struct BLOCK, b);
return node_to_rnode(b->body);
}
|
#cref_node ⇒ Object
249 250 251 252 253 254 255 256 |
# File 'ext/rubynode_ext/rubynode_ext.c', line 249
static VALUE proc_cref(VALUE proc) {
struct BLOCK * b;
if(ruby_safe_level >= 4) {
rb_raise(rb_eSecurityError, "Insecure: can't get proc cref");
}
Data_Get_Struct(proc, struct BLOCK, b);
return node_to_rnode(b->cref);
}
|
#var_node ⇒ Object
240 241 242 243 244 245 246 247 |
# File 'ext/rubynode_ext/rubynode_ext.c', line 240
static VALUE proc_var(VALUE proc) {
struct BLOCK * b;
if(ruby_safe_level >= 4) {
rb_raise(rb_eSecurityError, "Insecure: can't get proc var");
}
Data_Get_Struct(proc, struct BLOCK, b);
return node_to_rnode(b->var);
}
|