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 in ruby?



What is yield in ruby?..

Answer / Manish Kumar Verma

In Ruby, `yield` is a keyword that allows you to pass control to a block associated with the method. It effectively calls the block and returns its result.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Explain when self.up and self.down method is used?

1 Answers  


What are Ruby iterators?

1 Answers  


Explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?

1 Answers  


Difference between render and redirect?

1 Answers  


What are ruby variables.

1 Answers  


How is an iterator handled in ruby?

1 Answers  


Explain ruby data types.

1 Answers  


what is the purpose of the rakefile available in the demo directory in ruby?

1 Answers  


What are the case statement in ruby?

1 Answers  


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

1 Answers  


Can you please explain what is the difference between string and symbol?

1 Answers  


Explain about methods?

1 Answers  


Categories