lib/sinatra/directory_listing/resource.rb
def wrap
    html = ""
    if @page.should_list_invisibles == true
      html << "\n\t<tr>
      #{@name_html}
      #{@mtime_html}
      #{@size_html}
      \t</tr>"
    else
      if @file[0] != "."
        html << "\n\t<tr>
        #{@name_html}
        #{@mtime_html}
        #{@size_html}
        </tr>"
      end
    end
    html
  end
##
# Generate html for a resource.
Generate html for a resource.
Generate html for a resource .
def wrap
    html = ""
    if @page.should_list_invisibles == true
      html << "\n\t<tr>
      #{@name_html}
      #{@mtime_html}
      #{@size_html}
      \t</tr>"
    else
      if @file[0] != "."
        html << "\n\t<tr>
        #{@name_html}
        #{@mtime_html}
        #{@size_html}
        </tr>"
      end
    end
    html
  end
def wrap html = "" if @page . should_list_invisibles == true html << "\n\t<tr>
      #{@name_html}
      #{@mtime_html}
      #{@size_html}
      \t</tr>" else if @file [ 0 ] != "." html << "\n\t<tr>
        #{@name_html}
        #{@mtime_html}
        #{@size_html}
        </tr>" end end html end
Generate html for a resource.
Generate html for a resource .