Method: TTL2HTML::App#each_data
- Defined in:
- lib/ttl2html.rb
#each_data(label = :each_data) ⇒ Object
113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/ttl2html.rb', line 113 def each_data(label = :each_data) = ProgressBar.create(title: label, total: @data.size, format: "(%t) %a %e %P% Processed: %c from %C") @data.keys.sort_by do|uri| [ uri.count("/"), uri.size, uri ] end.reverse_each do |uri| .increment next if not uri.start_with? @config[:base_uri] yield uri, @data[uri] end .finish end |