#!/usr/bin/ruby def test puts "You are in the method" yield puts "You are again back to the method" yield end test {puts "You are in the block"}
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more