class CocoapodsCatalystSupport::PodDependency
Attributes
name[R]
type[R]
Public Class Methods
new(name, type)
click to toggle source
# File lib/cocoapods-catalyst-support/pod_dependency.rb, line 39 def initialize(name, type) @name = name @type = type end
newFramework(name)
click to toggle source
# File lib/cocoapods-catalyst-support/pod_dependency.rb, line 22 def self.newFramework name return PodDependency.new(name, :framework) end
newLibrary(name)
click to toggle source
# File lib/cocoapods-catalyst-support/pod_dependency.rb, line 26 def self.newLibrary name return PodDependency.new(name, :library) end
newWeakFramework(name)
click to toggle source
# File lib/cocoapods-catalyst-support/pod_dependency.rb, line 18 def self.newWeakFramework name return PodDependency.new(name, :weak_framework) end
Public Instance Methods
==(other)
click to toggle source
# File lib/cocoapods-catalyst-support/pod_dependency.rb, line 30 def ==(other) (name == other.name) && (type == other.type) end
eql?(other)
click to toggle source
# File lib/cocoapods-catalyst-support/pod_dependency.rb, line 34 def eql?(other) self == other end
link()
click to toggle source
# File lib/cocoapods-catalyst-support/pod_dependency.rb, line 7 def link case type when :weak_framework return "-weak_framework \"#{name}\"" when :library return "-l\"#{name}\"" else return "-framework \"#{name}\"" end end