Mega Code Archive

 
Categories / Ruby / Method
 

Use proc to create a function

hello = proc { "Hello" } puts hello.call