R
RichardOnRails
Hi,
I've got a 7-liner:
require 'rubygems'
require 'breakpoint'
a = 'aaa'
b = 'bbb'
breakpoint
c = 'ccc'
In a Command window, I've got:
K:\_Projects\Ruby\_Ruby_Tests\TestBreakpoint>ruby TestBreakpoint.rb
Executing break point at TestBreakpoint.rb:9
irb(main):001:0> local_variables
=> ["id", "block", "_"]
irb(main):002:0> quit
This test is based on Recipe 17.10 of the Ruby Cookbook, O'Reilly,
2006
Why doesn't the array allegedly presenting local variables:
1. Include a, b & c?
2. Present the things it does; what do they signify?
I'm running Ruby 1.8.6 over WinXP-Pro/SP3
Thanks in Advance
Richard
I've got a 7-liner:
require 'rubygems'
require 'breakpoint'
a = 'aaa'
b = 'bbb'
breakpoint
c = 'ccc'
In a Command window, I've got:
K:\_Projects\Ruby\_Ruby_Tests\TestBreakpoint>ruby TestBreakpoint.rb
Executing break point at TestBreakpoint.rb:9
irb(main):001:0> local_variables
=> ["id", "block", "_"]
irb(main):002:0> quit
This test is based on Recipe 17.10 of the Ruby Cookbook, O'Reilly,
2006
Why doesn't the array allegedly presenting local variables:
1. Include a, b & c?
2. Present the things it does; what do they signify?
I'm running Ruby 1.8.6 over WinXP-Pro/SP3
Thanks in Advance
Richard