Ruby on Rails Monday, May 31, 2010

RichardOnRails wrote:
> 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 don't know, but you're asking this question on the wrong list. This
is not a Rails question, and so should be directed to the main Ruby
list.

>
> I'm running Ruby 1.8.6 over WinXP-Pro/SP3
>
> Thanks in Advance
> Richard

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
Posted via http://www.ruby-forum.com/.

--
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