| Class | MCollective::Aggregate::Result::CollectionResult |
| In: |
lib/mcollective/aggregate/result/collection_result.rb
|
| Parent: | Base |
# File lib/mcollective/aggregate/result/collection_result.rb, line 5
5: def to_s
6: return "" if @result[:value].keys.include?(nil)
7:
8: result = StringIO.new
9:
10: @result[:value].sort{|x,y| x[1] <=> y[1]}.reverse.each do |value|
11: result.puts " " + @aggregate_format % [value[0], value[1]]
12: end
13:
14: result.string.chomp
15: end