Tell me how can you declare a block in Ruby?

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

Read Online Ruby Developer Job Interview Questions And Answers