block_given « Method « Ruby






1.Is block ready
2.The yield Statement using the block_given? method from Kernel.
3.If there's a block, pass in the file and close the file when it returns