mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix Object#inspect documentation
Starting from ruby 2.7.0, there's no longer a connection between the hexadecimal number that #inspect shows and the object's ID.
This commit is contained in:
parent
db58b4a48d
commit
918fe2ed7c
Notes:
git
2019-12-31 18:32:23 +09:00
1 changed files with 1 additions and 1 deletions
2
object.c
2
object.c
|
@ -748,7 +748,7 @@ inspect_obj(VALUE obj, VALUE str, int recur)
|
||||||
*
|
*
|
||||||
* Returns a string containing a human-readable representation of <i>obj</i>.
|
* Returns a string containing a human-readable representation of <i>obj</i>.
|
||||||
* The default #inspect shows the object's class name, an encoding of
|
* The default #inspect shows the object's class name, an encoding of
|
||||||
* the object id, and a list of the instance variables and their
|
* its memory address, and a list of the instance variables and their
|
||||||
* values (by calling #inspect on each of them). User defined classes
|
* values (by calling #inspect on each of them). User defined classes
|
||||||
* should override this method to provide a better representation of
|
* should override this method to provide a better representation of
|
||||||
* <i>obj</i>. When overriding this method, it should return a string
|
* <i>obj</i>. When overriding this method, it should return a string
|
||||||
|
|
Loading…
Reference in a new issue