Module: FileParser

Defined in:
lib/codefusion/file_parser.rb

Class Method Summary collapse

Class Method Details

.make_hash(path, file, parent_dir) ⇒ Object



2
3
4
5
# File 'lib/codefusion/file_parser.rb', line 2

def self.make_hash(path, file, parent_dir)
  { folder_name:  "",
    files:        FileParser.return_file(path, file, parent_dir) }
end

.shortened_path(path, parent_dir) ⇒ Object



7
8
9
10
# File 'lib/codefusion/file_parser.rb', line 7

def self.shortened_path(path, parent_dir)
  path.slice!(parent_dir)
  path[1..-1]
end