mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-04-28 19:13:48 +00:00
11 lines
233 B
Ruby
11 lines
233 B
Ruby
def block_test
|
|
puts "We're in the method!"
|
|
puts "Yielding to the block..."
|
|
yield
|
|
yield
|
|
puts "We're back in the method!"
|
|
end
|
|
|
|
block_test { puts ">>>>>>>>>> We're in the block!" }
|
|
|
|
block_test { puts "below it?!?>>>>>>>>>>>>"} |