Constants, globals, locals, instance variables, methods... Ruby has a lot of namespaces. Let's learn about a Ruby power tool for reflecting on these names no matter what space they come …
Tag: variables

Episode #626
Numbered Parameters
In a language full of expressive little shorthands, it's time to meet a new idiom! This one makes simple blocks even more concise.

Use “barewords” to embrace the true power of late-binding in Ruby
In the most fan-favorite RubyTapas episode of all time, you'll learn how using "barewords" is a powerful tool for decoupling names from the sources of information.

Episode #494: Special Variables Part 4: Speak English!
Now that you've learned how to obfuscate your code with Perl-style special variables, learn how to make it readable again!

Episode #493: Special Variables Part 3: Regex Matching
Learn about one final category of Ruby's Perl-style special variables, and some guidelines for using them.

Episode #492: Special Variables Part 2: I/O
Learn about Ruby's Perl-style I/O special variables, and why they exist.