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 the difference between Procs and Blocks?



what is the difference between Procs and Blocks?..

Answer / Kalyan Kumar Yadav

Procs are objects that encapsulate a block of code, allowing it to be passed around as an object. Blocks, on the other hand, are anonymous methods defined within a method call. While blocks can be converted into Procs using the Proc#new method, not all Procs can be used as blocks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Ruby support single inheritance/multiple inheritance or both?

1 Answers  


what is the difference between String and Symbol?

1 Answers  


Explain the types of variables available in ruby class?

1 Answers  


How can you removed from array in ruby?

1 Answers  


What things we can define in the model?

1 Answers  


Does hash use “ #==” or “#eql?” To compare hash keys?

1 Answers  


Explain the use of global variable $ in Ruby?

1 Answers  


What is the use of load and require in ruby?

1 Answers  


what is class libraries in Ruby?

1 Answers  


Explain some of the looping structures available in ruby?

1 Answers  


What is the pattern matching operator in ruby?

1 Answers  


What are advantages of using ruby?

1 Answers  


Categories