Skip to content

Instantly share code, notes, and snippets.

@harrisonmalone
Last active September 27, 2018 12:04
Show Gist options
  • Save harrisonmalone/4d45a84a48c290b00dd142607340809e to your computer and use it in GitHub Desktop.
Save harrisonmalone/4d45a84a48c290b00dd142607340809e to your computer and use it in GitHub Desktop.

Stuff to remember

this is a hash

    city = { 
        name: "Melbourne",
        population: 6000000
    }

this is an instance variable, it will always be in a class

    @age

this is a method (but think of it as a function)

    def add(arguments)
        # container for code 
    end 

this is a method

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