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
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>.
|
||||
* 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
|
||||
* should override this method to provide a better representation of
|
||||
* <i>obj</i>. When overriding this method, it should return a string
|
||||
|
Loading…
x
Reference in New Issue
Block a user