Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is yield statement in ruby.



What is yield statement in ruby...

Answer / Pooja Gupta

"The yield statement in Ruby is used within a block (a piece of code defined between do...end). When encountered, it passes control to the block, allowing it to execute its code. The value (if any) returned by the block can then be captured and used within the method."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Explain ruby data types.

1 Answers  


How to use sql db or mysql db. Without defining it in the database.yml

1 Answers  


Explain Ruby object?

1 Answers  


What are the operators available in ruby?

1 Answers  


Explain ruby class.

1 Answers  


Explain the role of modules and mixins in ruby?

1 Answers  


How does a symbol differ from a string?

1 Answers  


What are some built-in ruby class exceptions.

1 Answers  


Name different methods for io console in ruby?

1 Answers  


what is Interpolation in Ruby?

1 Answers  


Explain the three levels of access control for ruby methods?

1 Answers  


what is the difference between a gem and a plugin in Ruby?

1 Answers  


Categories