Created
January 27, 2012 02:47
-
-
Save connor/1686644 to your computer and use it in GitHub Desktop.
test
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
# loops | |
3.times do |t| | |
puts t | |
end | |
# assignment | |
professors = ["Chambers", "Goldwasser", "Scannell"] | |
# iterators | |
professor.each do |professor| | |
puts professor | |
end | |
# boolean operators | |
"hi".is_a?(String) # => True | |
# the parenthasis are optional: | |
# "hi".is_a? String | |
# renders the same result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment