Skip to content

Instantly share code, notes, and snippets.

@jorgenpt
Created January 24, 2012 22:25
Show Gist options
  • Save jorgenpt/1673109 to your computer and use it in GitHub Desktop.
Save jorgenpt/1673109 to your computer and use it in GitHub Desktop.
a = 1
def a; 2; end
puts a # => 1
puts a() # => 2
b = 5
def b(foo); foo * foo; end
puts b # => 5
puts b 5 # => 25
def c; 8; end
puts c # => 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment