inspect()
Returns the value as a string for inspection.
For example:
Date.new(2001,2,3).inspect #=> "#<Date: 2001-02-03 ((2451944j,0s,0n),+0s,2299161j)>" DateTime.new(2001,2,3,4,5,6,'-7').inspect #=> "#<DateTime: 2001-02-03T04:05:06-07:00 ((2451944j,39906s,0n),-25200s,2299161j)>"
static VALUE d_lite_inspect(VALUE self) { get_d1(self); { VALUE to_s; RB_GC_GUARD(to_s) = f_to_s(self); return mk_inspect(dat, rb_obj_classname(self), RSTRING_PTR(to_s)); } }