Sha256: 5cbcf7eb50026c11562765160161b590cc0cbd0a238b1322d2293e786c8416a0
Contents?: true
Size: 519 Bytes
Versions: 15
Compression:
Stored size: 519 Bytes
Contents
# -*- encoding: utf-8 -*- module WatchTower module Server module Presenters class ProjectPresenter < ApplicationPresenter # Return a file tree representation of a bunch of files # # @return [String] HTML representation of a file tree def file_tree(files) # Create a FileTree file_tree = FileTree.new(files.first.project.path, files) # Parse and return the tree parse_file_tree(file_tree, true) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems