Scoping of special variables


I am somewhat new to ruby and I was curious about certain details of the
language. Do special variables have global or local scope?



If it starts with a $, it’s global. I suppose you mean special
variables like $: - they’re global as well.

– Matma R.

take a look here:

  • j

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs