# File lib/Attributes.rb, line 63 63: def to_s(query = nil) 64: out = '' 65: first = true 66: @value.each do |allocation| 67: if first 68: first = false 69: else 70: out << "\n" 71: end 72: out << '[ ' 73: firstR = true 74: allocation.candidates.each do |resource| 75: if firstR 76: firstR = false 77: else 78: out << ', ' 79: end 80: out << resource.fullId 81: end 82: modes = %(order lowprob lowload hiload random) 83: out << " ] select by #{modes[allocation.selectionMode]} " 84: out << 'mandatory ' if allocation.mandatory 85: out << 'persistent ' if allocation.persistent 86: end 87: out 88: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.