Ruby wizardry, p.26
Ruby Wizardry, page 26
in symbol names, Symbols!
{} (curly brackets), for do/end, Putting Arrays and Loops into Action, You Know This!
| (vertical pipe), in do/end, Putting Arrays and Loops into Action
|| (or), Improving flow_rate.rb with Fancier Logical Operators, You Know This!
||=, Refactoring at the Refactory
“” (quotation marks), Getting to Know IRB, A Short Yarn, Ruby Operators
for strings, A Short Yarn
A
'a' (add) mode, Writing and Adding to Files, Writing and Adding to Files, You Know This!
Account class, Once More, with Feeling!, The Queen’s Machine
instance variables, The Queen’s Machine
addition, Ruby Operators
analyze method, A Horse of a Different Color
and (&&), His Majesty’s Flow Control, Improving flow_rate.rb with Fancier Logical Operators, You Know This!
another_minstrel.rb file, Methods and Instance Variables
another_minstrel_2.rb file, Methods and Instance Variables
another_minstrel_3.rb file, Methods and Instance Variables
ArgumentError error, Understanding Method Arguments
arguments, return Versus puts, Understanding Method Arguments
for methods, return Versus puts
vs. parameters, Understanding Method Arguments
array literal syntax, Arrays Within Arrays
arrays, while Loops, Arrays, You Know This!, Big Hank’s Hashery, Arrays Within Arrays, Arrays Within Arrays, Arrays Within Arrays, Shift! Pop! Insert!, Order Up!, You Know This!, You Know This!, All Loading Docks, Report for Duty!
contents, Arrays Within Arrays
creating, Arrays Within Arrays, You Know This!
first method, Arrays Within Arrays
for storing names, All Loading Docks, Report for Duty!
iterating through, Shift! Pop! Insert!
methods for, You Know This!
moving to next item, Arrays
sample method, Order Up!
within arrays, Big Hank’s Hashery
asterisk (*), Ruby Operators, A Smallish Project for You, Splat Parameters, You Know This!
as splat mark, Splat Parameters, You Know This!
for multiplication, Ruby Operators, A Smallish Project for You
at sign (@), Creating Our First Class, Minstrel, Instance Variables
for instance variables, Instance Variables
attr_accessor, Methods and Instance Variables, Methods and Instance Variables, Dial-a-Ballad, or the Minstrel’s Delivery Service, Variables and Scope, Her Majesty’s Menagerie, A Brush-up on Classes, Protecting the Kingdom with GuardDogs and FlyingMonkeys, The Big Picture: What You Know
attr_reader, Methods and Instance Variables, Methods and Instance Variables, Methods and Instance Variables, Variables and Scope, Variables and Scope, Once More, with Feeling!, The Big Picture: What You Know
attr_writer, Methods and Instance Variables, Variables and Scope, The Big Picture: What You Know
B
backward strings, A Smallish Project for You
ballad.rb file, Dial-a-Ballad, or the Minstrel’s Delivery Service
beginning of file, going to, Writing and Adding to Files
blank line, removing from input, A Biggerish Project for You
block methods, Splat Parameters
blocks of code, Putting Arrays and Loops into Action, You Know This!, Iterating with Arrays, Hash in the Hashery, Block Methods, You Know This!, Variable Scope, These Variable Errors Will Shock and Surprise You!, Variables and Scope, Opening a File with Ruby, You Know This!
and splat parameters, Block Methods
defining variable within, Variable Scope
for methods, You Know This!
opening file with, Opening a File with Ruby, You Know This!
pipe character (|) in, Hash in the Hashery
variable inside, Variables and Scope
variable scope and, These Variable Errors Will Shock and Surprise You!
block_given method, Block Methods
Booleans, The Apprentice Plumber’s Dilemma, You Know This!, Simplifying Methods, You Know This!
and simplifying code, Simplifying Methods
break if statement, Your Project, Should You Choose to Accept It
built-in Ruby objects, ID numbers, The Subject of Our Story Is an Object
C
calling a method, A Bit More About Variables
case statement, Crystal-Clear Conditionals, Re-refactoring, You Know This!
cd command, Creating Your First Script, Command Not Found
characters, You Know This!
child class, Inheritance and DRY Code, You Know This!
chomp method, A Biggerish Project for You
class << self syntax, Objects and self
class keyword, Creating Our First Class, Minstrel, Inheritance and DRY Code, The Queen’s Machine
class methods, Objects and self
class variables, Creating Our First Class, Minstrel, Global Variables, Dial-a-Ballad, or the Minstrel’s Delivery Service, Objects and Classes
classes, Arrays Within Arrays, The Subject of Our Story Is an Object, Classes and Objects, Variable Scope, Instance Variables, Local Variables, Objects and self, Dial-a-Ballad, or the Minstrel’s Delivery Service, You Know This!, Her Majesty’s Menagerie, Her Majesty’s Menagerie, Inheritance and DRY Code, Constants, You Know This!
adding methods, Objects and self
and objects, The Subject of Our Story Is an Object, You Know This!
creating, Classes and Objects, Dial-a-Ballad, or the Minstrel’s Delivery Service
defining, Her Majesty’s Menagerie
defining local variable outside, Instance Variables
extending module into, Constants
in different files, You Know This!
local variables inside definition, Variable Scope
methods for, Local Variables
subclass and superclass, Inheritance and DRY Code
clear the screen, in IRB, Can’t Convert nil into String
close method, Opening a File with Ruby, You Know This!
cmd.exe, Installing on Mac or Linux
code, Achievement Unlocked: Ruby Installed!, When to Use IRB and When to Use a Text Editor, A Smallish Project for You, His Majesty’s Flow Control, Hash in the Hashery, Inheritance and DRY Code, Creating Modules, Requiring Another File, Looking Up Constants, You Know This!, Simplifying Methods, The Big Picture: What You Know
de-duplicating, Simplifying Methods
downloading gems, Requiring Another File
DRY (Don’t Repeat Yourself) code, Inheritance and DRY Code
indentation, His Majesty’s Flow Control
pipe character (|) in, Hash in the Hashery
preloaded, Looking Up Constants
refactoring, You Know This!
reusing, The Big Picture: What You Know
running one line at a time, When to Use IRB and When to Use a Text Editor
semicolon (;) to end line, Creating Modules
writing and running, Achievement Unlocked: Ruby Installed!
writing to file, A Smallish Project for You
Code School, Ruby Tapas
Codecademy, Ruby Tapas
colon (:), Hash in the Hashery, Symbols!
for hash, Hash in the Hashery
for symbol, Symbols!
colons (::), scope resolution operator, Looking Up Constants, You Know This!
colorize.rb file, Creating Modules, Looking Up Constants
combining, methods, vs. size management, De-duplicating Code
comma (,), for separating key-value pairs, Hash in the Hashery
command line, Installing on Mac or Linux
command not found error, Command Not Found
command prompt, in Windows, Installing on Mac or Linux
commands, The Prompts Used in This Book, A Bit More About Variables
following object and dot, A Bit More About Variables
typing, The Prompts Used in This Book
compiling, Putting on the Ruby Slippers
Computing Contraption, The Prompts Used in This Book
conditional assignment of value to variable, Variable Assignment Tricks
conditional values, ||= for setting, Re-refactoring
conditionals, His Majesty’s Flow Control, Crystal-Clear Conditionals
constants, Constants, Looking Up Constants, A Horse of a Different Color
looking up, Looking Up Constants
control flow, His Majesty’s Flow Control, You Know This!, The Big Picture: What You Know
CTRL-C, for stopping IRB, Investigating the Kingdom’s Web Server, Can’t Convert nil into String
curly brackets ({}), for do/end, Putting Arrays and Loops into Action, You Know This!
D
datatypes, Arrays Within Arrays
de-duplicating code, Simplifying Methods
debugging, Procs and lambdas
def keyword, A Method to the Madness, Splat Parameters, You Know This!, The Big Picture: What You Know
default parameters, Understanding Method Arguments, You Know This!
default value, for variables, Refactoring at the Refactory
delete method, Symbols and Hashes, Together at Last, The Mid-morning Rush, You Know This!
for keys from hashes, You Know This!
directories, Writing and Running Ruby Scripts
(see also folders)
division, Ruby Operators
do block, Order Up!
do/end syntax, Putting Arrays and Loops into Action, You Know This!
Dog class, A Couple of Classes
dollar sign ($), Putting on the Ruby Slippers, These Variable Errors Will Shock and Surprise You!, Command Not Found
for global variables, These Variable Errors Will Shock and Surprise You!
Don’t Repeat Yourself (DRY) code, Inheritance and DRY Code
dots (..), in ranges, Rollicking Ranges, You Know This!
downloading, Why Learn Programming (and Why Ruby)?, Requiring Another File
gems, Requiring Another File
Ruby, Why Learn Programming (and Why Ruby)?
DRY (Don’t Repeat Yourself) code, Inheritance and DRY Code
E
each do, Your Project, Should You Choose to Accept It, Hash in the Hashery, Order Up!
each method, Putting Arrays and Loops into Action, You Know This!, Order Up!, Ruby Koans
echo, A Smallish Project for You
element in array, Arrays
else statement, His Majesty’s Flow Control, His Majesty’s Flow Control, You Know This!, Variable Assignment Tricks
with unless, Variable Assignment Tricks
elsif statement, His Majesty’s Flow Control, You Know This!
empty? method, Even More Array Methods!, Hash in the Hashery, You Know This!, You Know This!
for hash, Hash in the Hashery
end keyword, His Majesty’s Flow Control, while Loops, A Method to the Madness, You Know This!, Creating Our First Class, Minstrel
for class definition, Creating Our First Class, Minstrel
for if statement, His Majesty’s Flow Control
for methods, A Method to the Madness, You Know This!
for while loop, while Loops
Enumerable module, Ruby Koans
equal sign (=), A Short Yarn, Understanding Method Arguments, Methods and Instance Variables
for default parameters, Understanding Method Arguments
in method name, Methods and Instance Variables
Errno:: ENOENT: No such file or directory error, Avoiding Errors While Working with Files
errors, Installing on Mac or Linux, A Bit More About Variables, The Skinny on Symbols, Understanding Method Arguments, Variable Scope, These Variable Errors Will Shock and Surprise You!, Objects and self, Methods and Instance Variables, Methods and Instance Variables, Variables and Scope, Creating Modules, Creating Modules, Looking Up Constants, You Know This!, Avoiding Errors While Working with Files, Avoiding Errors While Working with Files, Troubleshooting, Troubleshooting, Command Not Found, Undefined Local Variable or Method, Undefined Local Variable or Method
'ruby' is not recognized ... error message, Installing on Mac or Linux
ArgumentError, Understanding Method Arguments
avoiding while working with files, Avoiding Errors While Working with Files
Errno:: ENOENT: No such file or directory, Avoiding Errors While Working with Files
in variables, Variable Scope
IOError, Creating Modules
NameError, These Variable Errors Will Shock and Surprise You!, Variables and Scope, Looking Up Constants, Undefined Local Variable or Method
NoMethodError, Objects and self, Methods and Instance Variables, Methods and Instance Variables, Creating Modules, You Know This!
NoMethodError: undefined method, A Bit More About Variables
SyntaxError, The Skinny on Symbols
TypeError, Undefined Local Variable or Method
using IRB, Command Not Found
when running Ruby scripts, Troubleshooting
even? method, De-duplicating Code
exceptions, handling, Procs and lambdas
.exe file, running, Using RubyInstaller
exist? method, Avoiding Errors While Working with Files, You Know This!
exit, from IRB, Getting to Know IRB
extend statement, Constants, A Horse of a Different Color, The Big Picture: What You Know
F
false, The Apprentice Plumber’s Dilemma, You Know This!, You Know This!
falsey values, Simplifying Methods, Simplifying Methods, You Know This!
file.close method, You Know This!
File.exist? method, Avoiding Errors While Working with Files
File.open method, File Input and Output, You Know This!
file.read method, You Know This!
file.rewind method, Writing and Adding to Files, Writing and Adding to Files, You Know This!
files, A Smallish Project for You, Requiring Another File, Requiring Another File, File Input and Output, File Input and Output, Opening a File with Ruby, Opening a File with Ruby, Avoiding Errors While Working with Files, You Know This!
./ for location, Requiring Another File
adding and writing to, Opening a File with Ruby
avoiding errors while working with, Avoiding Errors While Working with Files
close method, Opening a File with Ruby
opening, File Input and Output, File Input and Output
pulling Ruby code from, Requiring Another File
working with, You Know This!
writing code as, A Smallish Project for You
find_person method, The Subject of Our Story Is an Object
finishing your thought (...?), in IRB, Can’t Convert nil into String
first method, Arrays Within Arrays, Shift! Pop! Insert!, Rollicking Ranges, You Know This!, You Know This!
for arrays, Arrays Within Arrays, Shift! Pop! Insert!, Rollicking Ranges
for range, You Know This!
first_try.rb file, De-duplicating Code
flow.rb file, Writing and Running Ruby Scripts
flying_monkey.rb file, Every GuardDog Has His Day
folders, Using a Text Editor and the ruby Command, Writing and Running Ruby Scripts, Requiring Another File
for files, Requiring Another File
for Ruby program, Using a Text Editor and the ruby Command
for loop, Arrays, You Know This!
for/in loop, Arrays
G
Gedit (Linux), Using a Text Editor and the ruby Command
gems, Requiring Another File, Ruby and the Internet, Ruby and the Internet, You Know This!
downloading, Requiring Another File
open-uri, Ruby and the Internet
gets method, A Biggerish Project for You
GitHub, Beyond the Kingdom Walls, You Know This!
global variables, Creating Our First Class, Minstrel, These Variable Errors Will Shock and Surprise You!, Objects and Classes, Objects and Classes
$home, Objects and Classes
greater than (>), His Majesty’s Flow Control
greater than or equal to (>=), His Majesty’s Flow Control
Greetings module, You Know This!
Grimm, Avdi, Ruby Tapas
guard_dog.rb file, Using super
H
hash, Iterating with Arrays, Hash in the Hashery, Hash in the Hashery, Hash in the Hashery, Hash in the Hashery, You Know This!, You Know This!, Symbols!, The Mid-morning Rush, The Mid-morning Rush, What Else Can You Do with Symbols?, You Know This!, The Big Picture: What You Know
adding key and value to, What Else Can You Do with Symbols?
adding key to, Symbols!
automatically running through, The Mid-morning Rush
creating, Hash in the Hashery
empty? method for, Hash in the Hashery
length method for, Hash in the Hashery
methods, You Know This!
storing in variable, Hash in the Hashery
within hash, The Mid-morning Rush, You Know This!
hash rockets (=>), When to Use IRB and When to Use a Text Editor, Hash in the Hashery, The Skinny on Symbols
for IRB response, When to Use IRB and When to Use a Text Editor
for symbol, The Skinny on Symbols
hashery_menu.rb file, Rollicking Ranges
hashes, and symbols, The Skinny on Symbols
{} (curly brackets), for do/end, Putting Arrays and Loops into Action, You Know This!
| (vertical pipe), in do/end, Putting Arrays and Loops into Action
|| (or), Improving flow_rate.rb with Fancier Logical Operators, You Know This!
||=, Refactoring at the Refactory
“” (quotation marks), Getting to Know IRB, A Short Yarn, Ruby Operators
for strings, A Short Yarn
A
'a' (add) mode, Writing and Adding to Files, Writing and Adding to Files, You Know This!
Account class, Once More, with Feeling!, The Queen’s Machine
instance variables, The Queen’s Machine
addition, Ruby Operators
analyze method, A Horse of a Different Color
and (&&), His Majesty’s Flow Control, Improving flow_rate.rb with Fancier Logical Operators, You Know This!
another_minstrel.rb file, Methods and Instance Variables
another_minstrel_2.rb file, Methods and Instance Variables
another_minstrel_3.rb file, Methods and Instance Variables
ArgumentError error, Understanding Method Arguments
arguments, return Versus puts, Understanding Method Arguments
for methods, return Versus puts
vs. parameters, Understanding Method Arguments
array literal syntax, Arrays Within Arrays
arrays, while Loops, Arrays, You Know This!, Big Hank’s Hashery, Arrays Within Arrays, Arrays Within Arrays, Arrays Within Arrays, Shift! Pop! Insert!, Order Up!, You Know This!, You Know This!, All Loading Docks, Report for Duty!
contents, Arrays Within Arrays
creating, Arrays Within Arrays, You Know This!
first method, Arrays Within Arrays
for storing names, All Loading Docks, Report for Duty!
iterating through, Shift! Pop! Insert!
methods for, You Know This!
moving to next item, Arrays
sample method, Order Up!
within arrays, Big Hank’s Hashery
asterisk (*), Ruby Operators, A Smallish Project for You, Splat Parameters, You Know This!
as splat mark, Splat Parameters, You Know This!
for multiplication, Ruby Operators, A Smallish Project for You
at sign (@), Creating Our First Class, Minstrel, Instance Variables
for instance variables, Instance Variables
attr_accessor, Methods and Instance Variables, Methods and Instance Variables, Dial-a-Ballad, or the Minstrel’s Delivery Service, Variables and Scope, Her Majesty’s Menagerie, A Brush-up on Classes, Protecting the Kingdom with GuardDogs and FlyingMonkeys, The Big Picture: What You Know
attr_reader, Methods and Instance Variables, Methods and Instance Variables, Methods and Instance Variables, Variables and Scope, Variables and Scope, Once More, with Feeling!, The Big Picture: What You Know
attr_writer, Methods and Instance Variables, Variables and Scope, The Big Picture: What You Know
B
backward strings, A Smallish Project for You
ballad.rb file, Dial-a-Ballad, or the Minstrel’s Delivery Service
beginning of file, going to, Writing and Adding to Files
blank line, removing from input, A Biggerish Project for You
block methods, Splat Parameters
blocks of code, Putting Arrays and Loops into Action, You Know This!, Iterating with Arrays, Hash in the Hashery, Block Methods, You Know This!, Variable Scope, These Variable Errors Will Shock and Surprise You!, Variables and Scope, Opening a File with Ruby, You Know This!
and splat parameters, Block Methods
defining variable within, Variable Scope
for methods, You Know This!
opening file with, Opening a File with Ruby, You Know This!
pipe character (|) in, Hash in the Hashery
variable inside, Variables and Scope
variable scope and, These Variable Errors Will Shock and Surprise You!
block_given method, Block Methods
Booleans, The Apprentice Plumber’s Dilemma, You Know This!, Simplifying Methods, You Know This!
and simplifying code, Simplifying Methods
break if statement, Your Project, Should You Choose to Accept It
built-in Ruby objects, ID numbers, The Subject of Our Story Is an Object
C
calling a method, A Bit More About Variables
case statement, Crystal-Clear Conditionals, Re-refactoring, You Know This!
cd command, Creating Your First Script, Command Not Found
characters, You Know This!
child class, Inheritance and DRY Code, You Know This!
chomp method, A Biggerish Project for You
class << self syntax, Objects and self
class keyword, Creating Our First Class, Minstrel, Inheritance and DRY Code, The Queen’s Machine
class methods, Objects and self
class variables, Creating Our First Class, Minstrel, Global Variables, Dial-a-Ballad, or the Minstrel’s Delivery Service, Objects and Classes
classes, Arrays Within Arrays, The Subject of Our Story Is an Object, Classes and Objects, Variable Scope, Instance Variables, Local Variables, Objects and self, Dial-a-Ballad, or the Minstrel’s Delivery Service, You Know This!, Her Majesty’s Menagerie, Her Majesty’s Menagerie, Inheritance and DRY Code, Constants, You Know This!
adding methods, Objects and self
and objects, The Subject of Our Story Is an Object, You Know This!
creating, Classes and Objects, Dial-a-Ballad, or the Minstrel’s Delivery Service
defining, Her Majesty’s Menagerie
defining local variable outside, Instance Variables
extending module into, Constants
in different files, You Know This!
local variables inside definition, Variable Scope
methods for, Local Variables
subclass and superclass, Inheritance and DRY Code
clear the screen, in IRB, Can’t Convert nil into String
close method, Opening a File with Ruby, You Know This!
cmd.exe, Installing on Mac or Linux
code, Achievement Unlocked: Ruby Installed!, When to Use IRB and When to Use a Text Editor, A Smallish Project for You, His Majesty’s Flow Control, Hash in the Hashery, Inheritance and DRY Code, Creating Modules, Requiring Another File, Looking Up Constants, You Know This!, Simplifying Methods, The Big Picture: What You Know
de-duplicating, Simplifying Methods
downloading gems, Requiring Another File
DRY (Don’t Repeat Yourself) code, Inheritance and DRY Code
indentation, His Majesty’s Flow Control
pipe character (|) in, Hash in the Hashery
preloaded, Looking Up Constants
refactoring, You Know This!
reusing, The Big Picture: What You Know
running one line at a time, When to Use IRB and When to Use a Text Editor
semicolon (;) to end line, Creating Modules
writing and running, Achievement Unlocked: Ruby Installed!
writing to file, A Smallish Project for You
Code School, Ruby Tapas
Codecademy, Ruby Tapas
colon (:), Hash in the Hashery, Symbols!
for hash, Hash in the Hashery
for symbol, Symbols!
colons (::), scope resolution operator, Looking Up Constants, You Know This!
colorize.rb file, Creating Modules, Looking Up Constants
combining, methods, vs. size management, De-duplicating Code
comma (,), for separating key-value pairs, Hash in the Hashery
command line, Installing on Mac or Linux
command not found error, Command Not Found
command prompt, in Windows, Installing on Mac or Linux
commands, The Prompts Used in This Book, A Bit More About Variables
following object and dot, A Bit More About Variables
typing, The Prompts Used in This Book
compiling, Putting on the Ruby Slippers
Computing Contraption, The Prompts Used in This Book
conditional assignment of value to variable, Variable Assignment Tricks
conditional values, ||= for setting, Re-refactoring
conditionals, His Majesty’s Flow Control, Crystal-Clear Conditionals
constants, Constants, Looking Up Constants, A Horse of a Different Color
looking up, Looking Up Constants
control flow, His Majesty’s Flow Control, You Know This!, The Big Picture: What You Know
CTRL-C, for stopping IRB, Investigating the Kingdom’s Web Server, Can’t Convert nil into String
curly brackets ({}), for do/end, Putting Arrays and Loops into Action, You Know This!
D
datatypes, Arrays Within Arrays
de-duplicating code, Simplifying Methods
debugging, Procs and lambdas
def keyword, A Method to the Madness, Splat Parameters, You Know This!, The Big Picture: What You Know
default parameters, Understanding Method Arguments, You Know This!
default value, for variables, Refactoring at the Refactory
delete method, Symbols and Hashes, Together at Last, The Mid-morning Rush, You Know This!
for keys from hashes, You Know This!
directories, Writing and Running Ruby Scripts
(see also folders)
division, Ruby Operators
do block, Order Up!
do/end syntax, Putting Arrays and Loops into Action, You Know This!
Dog class, A Couple of Classes
dollar sign ($), Putting on the Ruby Slippers, These Variable Errors Will Shock and Surprise You!, Command Not Found
for global variables, These Variable Errors Will Shock and Surprise You!
Don’t Repeat Yourself (DRY) code, Inheritance and DRY Code
dots (..), in ranges, Rollicking Ranges, You Know This!
downloading, Why Learn Programming (and Why Ruby)?, Requiring Another File
gems, Requiring Another File
Ruby, Why Learn Programming (and Why Ruby)?
DRY (Don’t Repeat Yourself) code, Inheritance and DRY Code
E
each do, Your Project, Should You Choose to Accept It, Hash in the Hashery, Order Up!
each method, Putting Arrays and Loops into Action, You Know This!, Order Up!, Ruby Koans
echo, A Smallish Project for You
element in array, Arrays
else statement, His Majesty’s Flow Control, His Majesty’s Flow Control, You Know This!, Variable Assignment Tricks
with unless, Variable Assignment Tricks
elsif statement, His Majesty’s Flow Control, You Know This!
empty? method, Even More Array Methods!, Hash in the Hashery, You Know This!, You Know This!
for hash, Hash in the Hashery
end keyword, His Majesty’s Flow Control, while Loops, A Method to the Madness, You Know This!, Creating Our First Class, Minstrel
for class definition, Creating Our First Class, Minstrel
for if statement, His Majesty’s Flow Control
for methods, A Method to the Madness, You Know This!
for while loop, while Loops
Enumerable module, Ruby Koans
equal sign (=), A Short Yarn, Understanding Method Arguments, Methods and Instance Variables
for default parameters, Understanding Method Arguments
in method name, Methods and Instance Variables
Errno:: ENOENT: No such file or directory error, Avoiding Errors While Working with Files
errors, Installing on Mac or Linux, A Bit More About Variables, The Skinny on Symbols, Understanding Method Arguments, Variable Scope, These Variable Errors Will Shock and Surprise You!, Objects and self, Methods and Instance Variables, Methods and Instance Variables, Variables and Scope, Creating Modules, Creating Modules, Looking Up Constants, You Know This!, Avoiding Errors While Working with Files, Avoiding Errors While Working with Files, Troubleshooting, Troubleshooting, Command Not Found, Undefined Local Variable or Method, Undefined Local Variable or Method
'ruby' is not recognized ... error message, Installing on Mac or Linux
ArgumentError, Understanding Method Arguments
avoiding while working with files, Avoiding Errors While Working with Files
Errno:: ENOENT: No such file or directory, Avoiding Errors While Working with Files
in variables, Variable Scope
IOError, Creating Modules
NameError, These Variable Errors Will Shock and Surprise You!, Variables and Scope, Looking Up Constants, Undefined Local Variable or Method
NoMethodError, Objects and self, Methods and Instance Variables, Methods and Instance Variables, Creating Modules, You Know This!
NoMethodError: undefined method, A Bit More About Variables
SyntaxError, The Skinny on Symbols
TypeError, Undefined Local Variable or Method
using IRB, Command Not Found
when running Ruby scripts, Troubleshooting
even? method, De-duplicating Code
exceptions, handling, Procs and lambdas
.exe file, running, Using RubyInstaller
exist? method, Avoiding Errors While Working with Files, You Know This!
exit, from IRB, Getting to Know IRB
extend statement, Constants, A Horse of a Different Color, The Big Picture: What You Know
F
false, The Apprentice Plumber’s Dilemma, You Know This!, You Know This!
falsey values, Simplifying Methods, Simplifying Methods, You Know This!
file.close method, You Know This!
File.exist? method, Avoiding Errors While Working with Files
File.open method, File Input and Output, You Know This!
file.read method, You Know This!
file.rewind method, Writing and Adding to Files, Writing and Adding to Files, You Know This!
files, A Smallish Project for You, Requiring Another File, Requiring Another File, File Input and Output, File Input and Output, Opening a File with Ruby, Opening a File with Ruby, Avoiding Errors While Working with Files, You Know This!
./ for location, Requiring Another File
adding and writing to, Opening a File with Ruby
avoiding errors while working with, Avoiding Errors While Working with Files
close method, Opening a File with Ruby
opening, File Input and Output, File Input and Output
pulling Ruby code from, Requiring Another File
working with, You Know This!
writing code as, A Smallish Project for You
find_person method, The Subject of Our Story Is an Object
finishing your thought (...?), in IRB, Can’t Convert nil into String
first method, Arrays Within Arrays, Shift! Pop! Insert!, Rollicking Ranges, You Know This!, You Know This!
for arrays, Arrays Within Arrays, Shift! Pop! Insert!, Rollicking Ranges
for range, You Know This!
first_try.rb file, De-duplicating Code
flow.rb file, Writing and Running Ruby Scripts
flying_monkey.rb file, Every GuardDog Has His Day
folders, Using a Text Editor and the ruby Command, Writing and Running Ruby Scripts, Requiring Another File
for files, Requiring Another File
for Ruby program, Using a Text Editor and the ruby Command
for loop, Arrays, You Know This!
for/in loop, Arrays
G
Gedit (Linux), Using a Text Editor and the ruby Command
gems, Requiring Another File, Ruby and the Internet, Ruby and the Internet, You Know This!
downloading, Requiring Another File
open-uri, Ruby and the Internet
gets method, A Biggerish Project for You
GitHub, Beyond the Kingdom Walls, You Know This!
global variables, Creating Our First Class, Minstrel, These Variable Errors Will Shock and Surprise You!, Objects and Classes, Objects and Classes
$home, Objects and Classes
greater than (>), His Majesty’s Flow Control
greater than or equal to (>=), His Majesty’s Flow Control
Greetings module, You Know This!
Grimm, Avdi, Ruby Tapas
guard_dog.rb file, Using super
H
hash, Iterating with Arrays, Hash in the Hashery, Hash in the Hashery, Hash in the Hashery, Hash in the Hashery, You Know This!, You Know This!, Symbols!, The Mid-morning Rush, The Mid-morning Rush, What Else Can You Do with Symbols?, You Know This!, The Big Picture: What You Know
adding key and value to, What Else Can You Do with Symbols?
adding key to, Symbols!
automatically running through, The Mid-morning Rush
creating, Hash in the Hashery
empty? method for, Hash in the Hashery
length method for, Hash in the Hashery
methods, You Know This!
storing in variable, Hash in the Hashery
within hash, The Mid-morning Rush, You Know This!
hash rockets (=>), When to Use IRB and When to Use a Text Editor, Hash in the Hashery, The Skinny on Symbols
for IRB response, When to Use IRB and When to Use a Text Editor
for symbol, The Skinny on Symbols
hashery_menu.rb file, Rollicking Ranges
hashes, and symbols, The Skinny on Symbols
