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 use of interpolation in ruby?



What is the use of interpolation in ruby?..

Answer / Saneep Singh

Interpolation in Ruby allows you to embed expressions within strings. You can use the `#{}` syntax for string interpolation or the older `%` operator with a format string (e.g., `"%s %s" % ["Hello", "World"]`).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

How is class methods defined in ruby?

1 Answers  


Explain Ruby if-else statement?

1 Answers  


Tell me what is the difference between ruby 1.9 and ruby 2.0?

1 Answers  


What are class libraries in Ruby?

1 Answers  


Explain the role of modules and mixins in ruby?

1 Answers  


What is a struct in ruby?

1 Answers  


What must you do first before you can invoke an unboundmethod object?

1 Answers  


Ruby support single inheritance/multiple inheritance or both?

1 Answers  


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

1 Answers  


What is yield statement in ruby.

1 Answers  


Explain me what the difference is between false and nil in ruby?

1 Answers  


Tell me the role of modules and mixins in ruby?

0 Answers  


Categories