Website hosting service by Active-Venture.com
 

 Back to Index

prev - up - next - index

Proc

The Proc is the procedure object, which is the encapsulated block with context, such as local variables and stack frames. The Proc object acts like an unnamed function except it does not have its own local variable scope. (Although, local variables which appear first in the block 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 block with context and creates a new procedure object.

Methods:

self[arg...]
call(arg...)

Executes the procedure wrapped in the object. Arguments to the call are assigned to the block parameter.


prev - up - next - index

matz@netlab.co.jp

 

  

 

 

2002-2004 Active-Venture.com Website Hosting Service

 
Buy domain name at only $5.95/yr with comprehensive domain hosting services. Domain registration and domain search service from $5.95 Cheap domain name registration and domain transfer service
 

Disclaimer: This documentation is provided only for the benefits of our website hosting customers.
For authoritative source of the documentation, please refer to http://www.ruby-doc.org/docs/