From: "Rubén Medellín" Date: 2008-03-05T17:09:55+09:00 Subject: Re: Hello, world? (#158) On Feb 29, 6:06 pm, Matthew D Moss wrote: > The three rules of Ruby Quiz 2: Please, don't ask me HOW i can sleep at nights.... #--- BEGIN code def method_missing(a = p, *c); return ; nruter ;(c* p = a);gnissim_dohtem fed end ; dne alias m method_missing ; gnissim_dohtem m; saila class NilClass ; ssalCliN ssalc alias inspect to_s ; s_ot tcepsni ;saila end ; dne class Integer ; regetnI ssalc def method_missing(a=chr,*b);print chr;return a.to_s[0] ; [0];s_ot.a nruter;rhc tnirp;(b*rhc=a);gnissim_dohtem fed end ; dne def d! ; return(d.e and puts) ; (stup dna; e.d);nruter ; !d fed dne ; end ; dne ; end def p(p = a, *b) ; begin ; nigeb ; (b* a = p); p fed rescue ; print p.to_s ; return ; nruter ; s_ot.p tnirp ; eucser dne ; end ; dne ; end dne def a b = c ; return nil ; lin nruter ; c = b a; fed end a = a def fed a = a return nruter a = p end ; fed ; def dne p = a p a ; a p end ; dne def h ax0=0xa;return 0xa unless ax0;dne;y=x p;fed = def p x=y;end; 0xa;sselnu ax0;nruter ax0=0xa;h fed bx0, dx0 = 0xd, 0xb bx0 + dx0 + 0xb + bx0 + 0xd + 0xb end ; dne def Object.const_missing a ; a gnissim_tsnoc.tcejbO; fed return send(a.to_s.downcase) ; (esacnwod.s_ot.a);dnes nruter end ; dne H.e.l.l.o._.w.o.r.l.d! ; ! d.l.r.o.w._.o.l.l.e.H #-- END code