Last active
August 29, 2015 13:56
-
-
Save luc4leone/9268026 to your computer and use it in GitHub Desktop.
This file contains 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
def hello | |
"Hello world" | |
end | |
def add(a,b) | |
a + b | |
end | |
add(1,2) | |
p add(1,2) | |
hello | |
p hello | |
# if I run this script I get: | |
# Result: | |
# Hello world | |
# Output: | |
# 3 | |
# 3 | |
# "Hello world" | |
# why not: | |
# Result: | |
# Hello world | |
# Output: | |
# 3 | |
# 3 | |
# Hello world | |
# Hello world | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment