# File lib/puppet/network/format_handler.rb, line 116 116: def supported_formats 117: result = format_handler.formats.collect { |f| format_handler.format(f) }.find_all { |f| f.supported?(self) }.collect { |f| f.name }.sort do |a, b| 118: # It's an inverse sort -- higher weight formats go first. 119: format_handler.format(b).weight <=> format_handler.format(a).weight 120: end 121: 122: put_preferred_format_first(result) 123: end