Ruby special variables
cs

Ruby special variables

2007-09-14
There is a collection of special variables whose names consist of a dollar sign ($) followed by a single character. For example, $$ contains the process id of the ruby interpreter, and is read-only. $ global variable @ instance variable [a-z] or _ local variable [A-Z] constant Here are the major system variables: $! latest error message $@ location of error $_ string last read by gets $. line number last read by interpreter $& string last...
View more
Comments (3)

Get this podcast on your phone, Free

Create Your Podcast In Minutes

  • Full-featured podcast site
  • Unlimited storage and bandwidth
  • Comprehensive podcast stats
  • Distribute to Apple Podcasts, Spotify, and more
  • Make money with your podcast
Get Started
It is Free