A
Ara.T.Howard
can anyone think of a good reason NOT to have this feature?
class Object
def copy
Marshal::load(Marshal::dump(self))
end
end
i include this is nearly all of my own code and i know others do the same
quite often - why no method which does this?
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| URL :: http://www.ngdc.noaa.gov/stp/
| TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done
===============================================================================
class Object
def copy
Marshal::load(Marshal::dump(self))
end
end
i include this is nearly all of my own code and i know others do the same
quite often - why no method which does this?
-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| URL :: http://www.ngdc.noaa.gov/stp/
| TRY :: for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done
===============================================================================