Skip to content

Instantly share code, notes, and snippets.

@dohoonk
Last active February 19, 2016 20:18
Show Gist options
  • Select an option

  • Save dohoonk/a9c84b17e3501f91c05d to your computer and use it in GitHub Desktop.

Select an option

Save dohoonk/a9c84b17e3501f91c05d to your computer and use it in GitHub Desktop.
Bootcamp

Ruby Review

General Purpose Programming Language Interpreted Language

object_id

a = "Hello"
b = "World"
c = a

object_id

a.object_id
b.object_id
c.object_id

String

.capitalize .upcase .downcase .swapcase

Number

% modulo

Logical Operators

|| && if else elsif

Loop

Loop is required when you need to excute a code multiple times

While

loop do break if

for __ in 1..100

x.times

.is_a? String

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment