method

String

v1_8_7_330 - Show latest stable - Class: Kernel
String(p1)
public

Converts arg to a String by calling its to_s method.

String(self)        #=> "main"
String(self.class   #=> "Object"
String(123456)      #=> "123456"