From: Martin DeMello Date: 2003-06-23T00:49:00+09:00 Subject: Re: String#decorate ts wrote: >>>>>> "M" == Martin DeMello writes: > > M> pp = ary.join(",").decorate {|s| "[#{s}]"} > M> attrib = title.capitalize.decorate {|t| "\t -- #{author[t]},\"#{t}\""} > M> (n*100).to_s.decorate {|p| "#{p}% done"} > > Something like this ? > > svg% ri String#% No, simply class String def decorate yield self end end martin