On Oct 1, 12:14=A0am, John Sikora <john.sik... / xtera.com> wrote:
> How about some more simple ones like
>
> 'Do Re Mi Fa So La Ti ' * 3
>
> [125, 450, 250, 1000, 675].sort.reverse.collect{|e| "$#{e}"}.take(3)
>
> ' =A0 =A0 =A0hello there =A0'.strip.center(30, '-')
> --
> Posted viahttp://www.ruby-forum.com/.

[125, 450, 250, 1000, 675].sort.reverse.map{|e| "$#{e}"}[0,3]
    =3D=3D>["$1000", "$675", "$450"]