mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Improvements to documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
62ec5eb018
commit
502f159421
1 changed files with 4 additions and 4 deletions
8
string.c
8
string.c
|
@ -6001,11 +6001,11 @@ rb_str_inspect(VALUE str)
|
|||
* call-seq:
|
||||
* str.dump -> new_str
|
||||
*
|
||||
* Produces a version of +str+ with all non-printing characters replaced by
|
||||
* <code>\xnn</code> notation and all special characters escaped.
|
||||
* Produces a quoted version of +str+ with all non-printing characters replaced
|
||||
* by <code>\xnn</code> notation and all special characters escaped.
|
||||
*
|
||||
* This API is intended for round-trip: if the result string is eval'ed,
|
||||
* it produces the original string.
|
||||
* This method can be used for round-trip: if the resulting +new_str+ is
|
||||
* eval'ed, it will produce the original string.
|
||||
*
|
||||
* "hello \n ''".dump #=> "\"hello \\n ''\""
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue