Skip to content

Instantly share code, notes, and snippets.

@luc4leone
Last active August 29, 2015 13:56
Show Gist options
  • Save luc4leone/9268026 to your computer and use it in GitHub Desktop.
Save luc4leone/9268026 to your computer and use it in GitHub Desktop.
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