[ create a new paste ] login | about

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

Ruby, pasted on Sep 12:
1
2
3
4
5
6
7
def bar(n, &block)
  block.call
end

bar(5) {
  puts "hello, world"
}


Output:
1
hello, world


Create a new paste based on this one


Comments: