Hallo Stefan,

bin mir sicher, dass das hier auch eleganter geht:

http://pastie.textmate.org/79519

Auf jeden Fall ein schönes Beispiel dafür, dass gsub in Ruby auch einen Block als Argument nimmt, was man gerne übersieht, wenn man von anderen Sprachen her kommt.


Grüße, Niko.


--
___________________________________
niko dittmann
gottfr.-keller-str. 36
78467 konstanz
GERMANY

mail:         [EMAIL PROTECTED]
fon:                +49 7531 959531
fax:           +49 1212 512 852 148
aim:                         ende42
___________________________________


_______________________________________________
rubyonrails-ug mailing list
[email protected]
http://mailman.headflash.com/mailman/listinfo/rubyonrails-ug

Antwort per Email an