Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save dohoonk/4ad12e96f5b215a9b2c0 to your computer and use it in GitHub Desktop.
CodeCore Bootcamp

Arguements

multiply(a, *b) <---- multiple arguements

Blocks

yield if block_given?

Procs & Lambdas

my_lambda.call

when passing a hash as the last arguement u can skip the braces my_method a: 1, b: 2 my_method ({a: 1, b: 2})

class & objects

CamelCase convention is used for class name

FirstName LastName

load "cookie.rb" c = Cookie.new

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