codepad
[
create a new paste
]
login
|
about
Link:
http://codepad.org/GQbLBHa3
[
raw code
|
output
|
fork
]
Ruby
,
pasted on Aug 9:
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: