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