module Katarina::Path
Public Class Methods
include_paths(paths)
click to toggle source
# File lib/katarina/path.rb, line 6 def include_paths(paths) paths.reject { Katarina.config.exclude_paths.include?(_1) } end
output_dir(paths)
click to toggle source
# File lib/katarina/path.rb, line 14 def output_dir(paths) [Dir.pwd, Katarina.config.output_dir, *include_paths(paths)[0..-2]].join('/') end
output_file_name(file_name)
click to toggle source
# File lib/katarina/path.rb, line 18 def output_file_name(file_name) file_name + '.d.ts' end
output_path(paths)
click to toggle source
# File lib/katarina/path.rb, line 10 def output_path(paths) [output_dir(paths), output_file_name(paths.last)].join('/') end