Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

Proc#to_proc

() -> self
prc.to_proc → proc

Part of the protocol for converting objects to Proc objects. Instances of class Proc simply return themselves.

See also #source_location #to_s #ruby2_keywords #yield also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0