I want to sort a number of File::Stat object due to the user’s choice.
[Anyway, can I read back the filename from the Stat object?]
My idea was to build a hash, keys are ‘name’, ‘size’, … and values are
proc objects doing the comparism. Then I just can write.
But I don’t know the correct syntax.
I’m still using ruby1.6, if it matters.
±[Kontra, Gergely @ Budapest University of Technology and Economics]-+
Email: firstname.lastname@example.org, email@example.com |