irb(main):001:0> p = Proc.new { puts "foo" } irb(main):002:0> s = "bar"
irb(main):003:0> s === p
false
irb(main):004:0> p === s
"foo"
irb(main):001:0> p = Proc.new { |x| puts "foo #{x}" } irb(main):002:0> s = "bar"
irb(main):003:0> p === s
"foo bar"
irb(main):001:0> sleep 3.5
4
irb(main):002:0> sleep 3.5
3