Class: XcodeArchiveCache::Modulemap::HeaderPathExtractor
- Inherits:
-
Object
- Object
- XcodeArchiveCache::Modulemap::HeaderPathExtractor
show all
- Includes:
- Logs
- Defined in:
- lib/modulemap/header_path_extractor.rb
Instance Method Summary
collapse
Methods included from Logs
#debug, #error, #info, #set_log_level
Instance Method Details
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/modulemap/header_path_extractor.rb', line 29
def (modulemap_path)
modulemap_dir = File.dirname(modulemap_path)
modulemap_lines = FileHandler.new.read_modulemap_lines(modulemap_path)
= []
modulemap_lines.each do |line|
= (line)
if
<< (modulemap_dir, .path)
end
end
debug("modulemap header paths: #{}")
end
|
59
60
61
62
63
64
|
# File 'lib/modulemap/header_path_extractor.rb', line 59
def (line)
if line.include?("header") && !line.include?("exclude")
components = line.split("\"")
HeaderPathDeclaration.new(components[0], components[1])
end
end
|
51
52
53
|
# File 'lib/modulemap/header_path_extractor.rb', line 51
def (modulemap_dir, path)
Pathname.new(path).absolute? ? path : File.join(modulemap_dir, path)
end
|