In Ruby, are there any differences between Proc.new { 'waffles' }
and proc { 'waffles' }
? I have found very few mentions of the second syntax.
From testing using irb
, I haven't found any obvious differences. Is the second syntactic sugar for the first?