Class: Pod::Target::FrameworkPaths

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/target/framework_paths.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_path, dsym_path = nil, bcsymbolmap_paths = nil) ⇒ FrameworkPaths

Returns a new instance of FrameworkPaths


16
17
18
19
20
# File 'lib/cocoapods/target/framework_paths.rb', line 16

def initialize(source_path, dsym_path = nil, bcsymbolmap_paths = nil)
  @source_path = source_path
  @dsym_path = dsym_path
  @bcsymbolmap_paths = bcsymbolmap_paths
end

Instance Attribute Details

#bcsymbolmap_pathsArray, Nil (readonly)

Returns the bcsymbolmap files path array, if one exists

Returns:

  • (Array, Nil)

    the bcsymbolmap files path array, if one exists


14
15
16
# File 'lib/cocoapods/target/framework_paths.rb', line 14

def bcsymbolmap_paths
  @bcsymbolmap_paths
end

#dsym_pathString, Nil (readonly)

Returns the dSYM path, if one exists

Returns:

  • (String, Nil)

    the dSYM path, if one exists


10
11
12
# File 'lib/cocoapods/target/framework_paths.rb', line 10

def dsym_path
  @dsym_path
end

#source_pathString (readonly)

Returns the path to the .framework

Returns:

  • (String)

    the path to the .framework


6
7
8
# File 'lib/cocoapods/target/framework_paths.rb', line 6

def source_path
  @source_path
end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?


22
23
24
25
26
27
28
# File 'lib/cocoapods/target/framework_paths.rb', line 22

def ==(other)
  if other.class == self.class
    other.source_path == @source_path && other.dsym_path == @dsym_path && other.bcsymbolmap_paths == @bcsymbolmap_paths
  else
    false
  end
end

#all_pathsObject


36
37
38
# File 'lib/cocoapods/target/framework_paths.rb', line 36

def all_paths
  [source_path, dsym_path, bcsymbolmap_paths].flatten.compact
end

#hashObject


32
33
34
# File 'lib/cocoapods/target/framework_paths.rb', line 32

def hash
  [source_path, dsym_path, bcsymbolmap_paths].hash
end