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?
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?
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs