Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Call concat method through string variable : concat « String « Ruby
Ruby
String
concat
Call concat method through string variable
h =
"Hello, "
m =
"myValue!"
h.concat(m)
Related examples in the same category
1.
An alternative to << is the concat method (which does not allow you to chain)