Created
January 28, 2013 03:37
-
-
Save yangsu/4652825 to your computer and use it in GitHub Desktop.
Ruby Variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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