Sha256: beba8c48197f7cdbed9e201fdac514bde0a4264c94c6abde03bf0dc80332a191
Contents?: true
Size: 515 Bytes
Versions: 4
Compression:
Stored size: 515 Bytes
Contents
module Polytrix module Documentation module ViewHelper def polytrix_toc buffer = StringIO.new buffer.puts '<ul>' Polytrix.manifest.suites.each do |suite_name, suite| buffer.puts "<li>#{suite_name}</li>" buffer.puts '<ul>' suite.samples.each do |challenge_name| buffer.puts "<li>#{challenge_name}</li>" end buffer.puts '</ul>' end buffer.puts '</ul>' buffer.string end end end end
Version data entries
4 entries across 4 versions & 1 rubygems