class Xcodeproj::Project::Object::GroupableHelper
def normalize_source_tree(source_tree)
-
(String)- the string value of the source tree.
Parameters:
-
source_tree(Symbol, String) --
def normalize_source_tree(source_tree) if source_tree.is_a?(Symbol) source_tree = SOURCE_TREES_BY_KEY[source_tree] end unless SOURCE_TREES_BY_KEY.values.include?(source_tree) raise "[Xcodeproj] Unrecognized source tree option `#{source_tree}`" end source_tree end