Module: CocoapodsCatalystSupport::TargetUtils

Included in:
Pod::PodTarget, Xcodeproj::Project::Object::AbstractTarget, Xcodeproj::Project::Object::PBXTargetDependency
Defined in:
lib/cocoapods-catalyst-support/utils.rb

Instance Method Summary collapse

Instance Method Details

#module_nameObject


25
26
27
28
# File 'lib/cocoapods-catalyst-support/utils.rb', line 25

def module_name
  string = name.clone.gsub! /(-(iOS([0-9]+(\.[0-9])?)*|library|framework))*$/, ''
  return string.nil? ? name : string
end