| Class | Proc |
| In: |
lib/as_expression.rb
ext/nodewrap.c |
| Parent: | Object |
rb_cNodeType = rb_funcall(
rb_cStruct,
rb_intern("new"),
2,
ID2SYM(rb_intern("name")),
ID2SYM(rb_intern("value")));
rb_const_set(rb_cNode, rb_intern("Type"), rb_cNodeType); rb_define_method(rb_cNodeType, "to_s", node_type_to_s, 0); rb_define_method(rb_cNodeType, "to_i", node_type_to_i, 0);
Load a Proc from a String. When it is loaded, it will be an UnboundProc, until it is bound to a Binding with UnboundProc#bind.