Le 01 mars 01:06, Matthew D Moss a ñÄrit :
Here's my simple method_missing one :
class H
@acc = 'H'
def H.bang!
puts @acc << " !"
end
def H.method_missing(m)
@acc << m.to_s.sub(/_/, ' ')
self
end
end
H.e.l.l.o._.W.o.r.l.d.bang!
Fred
--
Watch me, I'm coming closer I am the mood you're in tonight
Pretty poser, perfect armageddon bride I am a circle, it feels right
I am the one who swallows light Multiplying parasite
Perfect features, perfect sight (K's Choice, Hide)