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 |
Tell me how can you declare a block in ruby?
Explain the difference between nil and false in ruby?
What does irb stand for?
What is ruby object?
Do you know when self.up and self.down method is used?
Describe the environment variables present in Ruby?
What are the operators available in ruby?
How is class methods defined in ruby?
Define ruby methods.
Explain the difference between a single quote and double quote?
What is the difference between ruby 1.9 and ruby 2.0?
How will you comment in ruby.