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);

Methods

<<   _dump   _load   as_expression   body   push   unbind   var  

Public Class methods

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.

Public Instance methods

Append the body of anotherProc onto proc.

Returns the Proc‘s body Node.

On YARV, this will return the instruction sequence for the proc‘s block.

Append the body of anotherProc onto proc.

Returns the Proc‘s argument Node.

This method is undefined on YARV.

[Validate]