Waiting for Singularity

Thoughts on science, tech and other preoccupations

Ruby Flashcards: Globals in Ruby

An flashcard app to test your knowledge of Ruby global variables.

Question pool based on terminologies from Ruby QuickRef from ZenSpider.com

Outputs:

*** Test your knowledge of Ruby Globals!***
Based on Ruby QuickRef from ZenSpider.com

Q: The exception object passed to #raise
A: $!
Correct
Do you want to continue? (Y/N):y

Q: The status of the last executed child process. Read only. Thread local.
A: $.
Incorrect. The answer is: $?
Do you want to continue? (Y/N):y

Q: The current standard input.
A: $stdin
Correct
Do you want to continue? (Y/N):n