Method: Kernel#String
- Defined in:
- object.c
#String(arg) ⇒ String
Converts arg to a String by calling its to_s method.
String(self) #=> "main"
String(self.class #=> "Object"
String(123456) #=> "123456"
2545 2546 2547 |
# File 'object.c', line 2545 static VALUE rb_f_string(obj, arg) VALUE obj, arg; |