I am new to Ruby and would like to know why we use Blocks in Ruby instead of using methods in a regular way? Also what is the difference between regular Block and Default Block in Ruby? If you know any good resource that explain Blocks and their usage, please let me know. Thanks
Aucun commentaire:
Enregistrer un commentaire