+0.85 This does the job, but it relies on the names of the test records
(specifically, of one of them being greater than "empty"). Still, the
alternatives I can think of, such as:
[[sample_records[:empty]] | sample_records.values).each do |options|
[[sample_records[:empty]] + sample_records.reject { |k,v| k ==
:empty}.values).each do |options|
sample_records.values.sort_by { |options| options[:text].length }.each
do |options|
don't seem sufficiently better to warrant advocating them.
-- M
-----------------------------------------------------------
The power of accurate observation is
commonly called cynicism by those
who have not got it. ~George Bernard Shaw
------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.