--qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 30, 2011 at 08:01:48AM +0900, Josh Cheek wrote: >=20 > That's because methods are invoked by default, as I already stated. You n= eed > a line that evaluates to the method, not to nil. Your issue isn't with the > objectivity of methods, it is with how you access methods. >=20 > # this is evaluated > puts # =3D> nil >=20 > # now we have a reference to it > puts =3D method :puts # =3D> #<Method: Object(Kernel)#puts> That's a wrapper -- not the method itself. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk27l8wACgkQ9mn/Pj01uKX8MwCg6AQE7YV6now7S+rGBj2hVYxs kosAn3oxLgq6YpSbd0kXpOWaB9uZ05/L =ZEOh -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk-- On Sat, Apr 30, 2011 at 08:01:48AM +0900, Josh Cheek wrote: >=20 > That's because methods are invoked by default, as I already stated. You n= eed > a line that evaluates to the method, not to nil. Your issue isn't with the > objectivity of methods, it is with how you access methods. >=20 > # this is evaluated > puts # =3D> nil >=20 > # now we have a reference to it > puts =3D method :puts # =3D> #<Method: Object(Kernel)#puts> That's a wrapper -- not the method itself. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk27l8wACgkQ9mn/Pj01uKX8MwCg6AQE7YV6now7S+rGBj2hVYxs kosAn3oxLgq6YpSbd0kXpOWaB9uZ05/L =ZEOh -----END PGP SIGNATURE-----