Method: Date#inspect

Defined in:
date_core.c

#inspectString

Returns a string representation of self:

Date.new(2001, 2, 3).inspect
# => "#<Date: 2001-02-03 ((2451944j,0s,0n),+0s,2299161j)>"

Returns:

  • (String)


7053
7054
7055
7056
7057
7058
# File 'date_core.c', line 7053

static VALUE
d_lite_inspect(VALUE self)
{
    get_d1(self);
    return mk_inspect(dat, rb_obj_class(self), self);
}