Ruby Developer Question: Download Ruby Developer PDF

Tell me how can you declare a block in Ruby?

Tweet Share WhatsApp

Answer:

In Ruby, the code in the block is always enclosed within braces ({}). You can invoke a block by using “yield statement”.

Download Ruby Developer PDF Read All 74 Ruby Developer Questions
Previous QuestionNext Question
Do you know about Dig, Float and Max?Tell us what is class libraries in Ruby?