Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
7 Cards in this Set
- Front
- Back
Main difference between each and map methods
|
Map creates a new array using a procedure inside a block
Each only does what is inside the block without creating / returning anything |
|
.reject method
|
The opposite of .select
Filters an array by the opposite of criteria passed in the block and puts the results in a new array |
|
.select method
|
Filters an array by the criteria passed in the block and puts the results in a new array
|
|
Symbols to Proc
|
to fill
|
|
Temporarily disable a test
|
Change it to xit in rspec file:
xit 'should ...' |
|
Test if function returns true
|
In Rspec:
expect(....).to be_true |
|
Test if function returns false
|
In Rspec:
expect(....).to be_false |