The output of `inspect` is not specified, it only is supposed to 'return a string containing a human-readable representation of obj', so I would be hesitant to rely on it producing that particular output across ruby versions.