Method: XcodePages.input

Defined in:
lib/XcodePages.rb

.inputObject

Searches for all the available source files (files with h, m or mm extension) in the current working directory or below. Pulls out their directory names and answers an array of unique space-delimited relative folder paths. These directory names will become Doxygen input folders.

The implementation assumes that the current working directory equals the Xcode source root. It also makes some simplifying assumptions about spaces in the paths: that there are no spaces. Doxygen uses spaces to delimit the files and directories listed for input. But what if the paths themselves contain spaces?

Note that this method works correctly when the source root itself contains headers or sources. In this case, the answer will contain the “.” directory.



35
36
37
# File 'lib/XcodePages.rb', line 35

def self.input
  Dir.glob('**/*.{h,m,mm}').map { |relative_path| File.dirname(relative_path) }.uniq.join(' ')
end