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 to write multiline string in Ruby?



How to write multiline string in Ruby?..

Answer / Mayank Srivastava

"To write a multiline string in Ruby, you can enclose the string within triple double quotes (""") or triple single quotes (''). Within the string, newlines are represented as
."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Tell me how can you declare a block in ruby?

1 Answers  


Explain the difference between nil and false in ruby?

1 Answers  


What does irb stand for?

1 Answers  


What is ruby object?

1 Answers  


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

1 Answers  


Describe the environment variables present in Ruby?

1 Answers  


What are the operators available in ruby?

1 Answers  


How is class methods defined in ruby?

1 Answers  


Define ruby methods.

1 Answers  


Explain the difference between a single quote and double quote?

1 Answers  


What is the difference between ruby 1.9 and ruby 2.0?

1 Answers  


How will you comment in ruby.

1 Answers  


Categories