Proc Call in ruby1.9.3

Call a proc in different ways

1
2
3
my_proc = Proc.new do|name|
  "this is #{name}"
end

READMORE You can call this proc by 4 ways

1
2
3
4
my_proc.call('rays')
my_proc.('rashmi')
my_proc.("rita")
my_proc === "richa"