concat is a String class method in Ruby which is used to Concatenates two objects of String. If the given object is an Integer, then it is considered a codepoint and converted to a character before concatenation.
Parameters: This method can take the string object and normal string as the parameters. If it will take integer then this method will convert them into the character.
Returns: This method returns the concatenated string as a result.
- Ruby | Array concat() operation
- Ruby | String hex Method
- Ruby | String =~ Method
- Ruby | String eql? Method
- Ruby | String <=> Method
- Ruby | String == method
- Ruby | String << Method
- Ruby | String + Method
- Ruby | String chr Method
- Ruby | String * Method
- Ruby | String === Method
- Ruby | String end_with? Method
- Ruby | String chop! Method
- Ruby | String ascii_only? Method
- Ruby | String getbyte Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.