String(arg) â string
Instance Public methods
Returns arg as an String
.
First tries to call its to_str
method, then its
to_s
method.
String(self) #=> "main" String(self.class) #=> "Object" String(123456) #=> "123456"
Returns arg as an String
.
First tries to call its to_str
method, then its
to_s
method.
String(self) #=> "main" String(self.class) #=> "Object" String(123456) #=> "123456"
Please login to continue.