Ruby on Rails Monday, May 31, 2010

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

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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment