Method: Object#inspect

Defined in:
object.c

#inspect ⇒ String

Returns a string containing a human-readable representation of obj. If not overridden, uses the to_s method to generate the string.

[ 1, 2, 3..4, 'five' ].inspect   #=> "[1, 2, 3..4, \"five\"]"
Time.new.inspect                 #=> "Wed Apr 09 08:54:39 CDT 2003"

Returns:



391
392
393
# File 'object.c', line 391

static VALUE
rb_obj_inspect(obj)
VALUE obj;