to_s

obj.to_s â string
Instance Public methods

Returns a string representing obj. The default to_s prints the object's class and an encoding of the object id. As a special case, the top-level object that is the initial execution context of Ruby programs returns âmain.''

doc_ruby_on_rails
2015-04-24 09:26:54
Comments
Leave a Comment

Please login to continue.