C:\>irb
irb(main):001:0> s = Proc.new { puts "Hello" }
=> #<Proc:0x04051780@(irb):1>
irb(main):002:0> s.call
Hello
=> nil
什么原因导致零?
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
C:\>irb
irb(main):001:0> s = Proc.new { puts "Hello" }
=> #<Proc:0x04051780@(irb):1>
irb(main):002:0> s.call
Hello
=> nil
什么原因导致零?
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]