Class: LocalModule

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-localsource/LocalModuleManager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(modulesPath, root, name) ⇒ LocalModule

Returns a new instance of LocalModule.



68
69
70
71
72
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 68

def initialize(modulesPath, root, name)
  @modules_path = modulesPath
  @root = root
  @name = name
end

Instance Attribute Details

#modules_pathObject (readonly)

Returns the value of attribute modules_path.



74
75
76
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 74

def modules_path
  @modules_path
end

#nameObject (readonly)

Returns the value of attribute name.



76
77
78
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 76

def name
  @name
end

#rootObject (readonly)

Returns the value of attribute root.



75
76
77
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 75

def root
  @root
end

Instance Method Details

#==(anOther) ⇒ Object



86
87
88
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 86

def ==(anOther)
  module_podspec_path == anOther.module_podspec_path
end

#module_pathObject



78
79
80
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 78

def module_path
  "#{@modules_path}/#{@root}"
end

#module_podspec_pathObject



82
83
84
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 82

def module_podspec_path
  "#{@modules_path}/#{@root}/#{@name}.podspec"
end