Sha256: fd0fa6e4269a9a2a6e9bbe4e458277b25209601058d2701161af8714f1f2247d
Contents?: true
Size: 546 Bytes
Versions: 17
Compression:
Stored size: 546 Bytes
Contents
module JsTestCore module Representations class Dir < Page needs :relative_path, :absolute_path protected def body_content ul do ::Dir.glob("#{absolute_path}/*").inject("") do |html, file| li do a( ::File.basename(file), :href => "#{relative_path}/#{::File.basename(file)}".gsub("//", "/") ) end end end end def title_text "Contents of #{relative_path}" end end end end
Version data entries
17 entries across 17 versions & 4 rubygems