Skip to content

Instantly share code, notes, and snippets.

@connor
Created January 27, 2012 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save connor/1686644 to your computer and use it in GitHub Desktop.
Save connor/1686644 to your computer and use it in GitHub Desktop.
test
# 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