What is concatenating string in ruby. In how many ways you can create a concatenating string.
Answer / Avinash Verma
Concatenation in Ruby refers to combining multiple strings together. There are several ways to concatenate strings:
1. Using the '+' operator: 'str1' + 'str2'
2. Using << for append operation: 'str' << 'append_string'
3. Using the 'n' operator for multi-line strings: 'str1nstr2'
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain ruby class.
What is the difference between static and dynamic scaffolding?
As you know ruby provides four types of variables. List them and provide a brief explanation for each?
Explain about Class variable and global variable?
Overview of ruby programming language?
What is the difference between ruby 1.9 and ruby 2.0?
How do you handle exceptions in ruby code?
what is the syntax for Ruby collect Iterator?
What is the use of interpolation in ruby?
Explain raise statement in Ruby?
How to read a file in Ruby?
Do you know when self.up and self.down method is used?