Answers

Question and Answer:

  Home  Ruby Developer

⟩ Tell me how can you declare a block in Ruby?

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

 156 views

More Questions for you: