Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaks to material to remove class sections (now taught through Ruby …
…Robot world), and display more content on slides rather than loading with javascript
- Loading branch information
Showing
9 changed files
with
196 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
YES - true | ||
NO - false | ||
ANY LETTER, WORD, ETC. - string | ||
NUMBER - integer | ||
CATEGORY - class | ||
COMMAND - method | ||
ANY ITEM IN RUBY WORLD - object | ||
STICKY NOTE - variable | ||
ENTER KEY - \n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
INTEGER | ||
+ - add together | ||
next - give the next number | ||
even? - is the number even? | ||
odd? - is the number odd? | ||
round - rounds up or down to nearest integer | ||
to_s - converts to a string | ||
abs - absolute value | ||
zero? - is it 0? | ||
ceil - rounds up to the nearest integer | ||
* - multiply two integers together | ||
puts - displays the integer | ||
> - greater than | ||
< - less than | ||
== - are they equal? | ||
<= - less than OR equal | ||
>= - greater than or equal | ||
!= - not equal | ||
|
||
|
||
|
||
STRING | ||
+ - put the strings together | ||
capitalize - capitalize first letter of string | ||
upcase - make all letters capital | ||
reverse - reverse all of the letter | ||
chop - take off last letter of string | ||
* - if followed by integer, repeat that many times | ||
downcase - make everything lowercase | ||
empty? - is the string empty? | ||
include? - does the string include another string? | ||
next - next letter in sequence | ||
delete - deletes all individual letters in string | ||
length - count the number of letters | ||
puts - displays the string | ||
gets - takes a string from us including the enter key | ||
gets.chomp - takes a string without the enter key | ||
|
||
|
||
|
||
ARRAY | ||
each - go through each element | ||
join(", ") - turn to string w/ comma, return original | ||
reverse - reverse elements, return original | ||
[x] - element at x, return original | ||
uniq - remove duplicates, return original | ||
delete_at(x) - remove element at x, return new array | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
99.downto(1).each do |i| | ||
puts "#{i} bottles of beer on the wall, #{i} bottles of beer. Take one down, pass it around, and now there are #{i - 1} bottles of beer on the wall!" | ||
puts "#{i} bottles of soda on the wall, #{i} bottles of soda. Take one down, pass it around, and now there are #{i - 1} bottles of soda on the wall!" | ||
sleep 0.5 | ||
end |
Oops, something went wrong.