String

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"
doc_ruby_on_rails
2015-04-17 08:34:28
Comments
Leave a Comment

Please login to continue.