On 08 Jan 2008, at 10:38, phil wrote:
> I am embarrassed to have to ask what is probably a very simple
> question, but, I''ve come across some code in a library that says
this:
>
> logger.debug("$language_id = #{$language_id}")
>
> what does putting $ in front of a variable do?
http://ruby.activeventure.com/usersguide/rg/globalvars.html
Best regards
Peter De Berdt
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---