taz mazia
taz mazia

Reputation: 341

What is the "full name" of the object named "Proc" in Ruby

I assume the meaning of the name is a short way to say procedure,

much like of int in other OOP languages is shorthand for integer.

I ask this because the Ruby document site didn't addressed it in it's Proc page.

Upvotes: 1

Views: 384

Answers (1)

Stefan
Stefan

Reputation: 114178

The Ruby Language Reference Manual (1998 by Yukihiro Matsumoto) refers to it as “procedure object”:

The Proc is the procedure object, which is the encapsulated block with context, such as local variables and stack frames.

Upvotes: 4

Related Questions