Skip to content

Instantly share code, notes, and snippets.

@yangsu
Created January 28, 2013 03:37
Show Gist options
  • Save yangsu/4652825 to your computer and use it in GitHub Desktop.
Save yangsu/4652825 to your computer and use it in GitHub Desktop.
Ruby Variables
foo = 'hello, plcourse' # here we define a function. Notice there's no type declaration
foo = 'is mutable' # variables are mutable, i.e. they can vary
CONSTANTS = 'are defined like this' # they are immutable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment