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...


How would you freeze an object in ruby?



How would you freeze an object in ruby?..

Answer / Rewti Raman Singh

To freeze an object in Ruby, you use the Object#freeze method. Once frozen, the object cannot be modified, and attempts to modify it will result in a RuntimeError.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

How to check whether a directory exist or not in Ruby?

1 Answers  


What are some built-in ruby class exceptions.

1 Answers  


What are blocks and procs?

1 Answers  


Explain about Float, Dig and Max?

1 Answers  


Explain ruby ranges. What are the ways to define ranges?

1 Answers  


Do you know when self.up and self.down method is used?

1 Answers  


Tell me what does ruby name refers to?

1 Answers  


Do you know how ruby looks up a method to invoke?

1 Answers  


Explain about Class variable and global variable?

1 Answers  


What is Ruby programming language?

1 Answers  


What is the scope of a local variable in ruby?

1 Answers  


Explain some of the looping structures available in ruby?

1 Answers  


Categories