[ create a new paste ] login | about

Link: http://codepad.org/1GHlfS5l    [ raw code | output | fork ]

Ruby, pasted on Mar 29:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
def foo
  '2' and return
end

def bar
  return '2'
end

def baz
  '2'
end

puts foo
puts bar
puts baz


Output:
1
2
3
nil
2
2


Create a new paste based on this one


Comments: