prev - up - next - index

Proc

The Proc is the procedure object, which is the encapsulated iterator block with context, such as local variables or stack frames. The Proc object acts like an unnamed function except it does not have its own local variable scope. (Although, dynamic local variables can have distinct value for each Proc.) The non local jump such as return, break, next, redo, retry raise the exceptions, once returned from Proc creation methods.

SuperClass:

Object

Class Methods:

new

Wraps the iterator block with context and creates a new procedure object.

Methods:

call(arg[,...])

Executes the procedure wrapped in the object. Arguments to the call are assigned to the iterator variables.


prev - up - next - index

matz@caelum.co.jp