Sha256: 4f8a9d6d8f0f68a61aed05713dc10ca59a474628040f4dab8788e3d17f180dc9
Contents?: true
Size: 595 Bytes
Versions: 4
Compression:
Stored size: 595 Bytes
Contents
module JsTestCore module Representations class Dir < Page attr_reader :relative_path, :absolute_path 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
4 entries across 4 versions & 2 rubygems