From: Eric Hodel Date: 2003-02-07T07:13:07+09:00 Subject: Re: What does IRB's "=>" show? --KH9S6eoVXLBawpUJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Daniel Carrera (dcarrera@math.umd.edu) wrote: > I don't quite understand what irb's "=3D>" is showing. In particular, I'= d like to=20 > know how to change it. >=20 > Currently I get: >=20 > >> p =3D X**2 - 1 > =3D> # >=20 > And I'd rather it produce something like: >> > >> p =3D X**2 - 1 > =3D> X**2 - 1 >=20 > Or better yet: >=20 > >> p =3D X**2 - 1 > =3D> > 2 =20 > X - 1 > >> >=20 > Is this possible? It uses #inspect, so just define a #inspect method for Poly, and You'll be set! --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --KH9S6eoVXLBawpUJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+Qt3xMypVHHlsnwQRAiqUAKCJXpHZL8w/DjksvtO0qauR2evy3QCfaKqK 4imoB+e8wYUSogu5hEaCCQ0= =9qfP -----END PGP SIGNATURE----- --KH9S6eoVXLBawpUJ--