Class: LocalModule
- Inherits:
-
Object
- Object
- LocalModule
- Defined in:
- lib/cocoapods-localsource/LocalModuleManager.rb
Instance Attribute Summary collapse
-
#modules_path ⇒ Object
readonly
Returns the value of attribute modules_path.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #==(anOther) ⇒ Object
-
#initialize(modulesPath, root, name) ⇒ LocalModule
constructor
A new instance of LocalModule.
- #module_path ⇒ Object
- #module_podspec_path ⇒ Object
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_path ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
76 77 78 |
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 76 def name @name end |
#root ⇒ Object (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_path ⇒ Object
78 79 80 |
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 78 def module_path "#{@modules_path}/#{@root}" end |
#module_podspec_path ⇒ Object
82 83 84 |
# File 'lib/cocoapods-localsource/LocalModuleManager.rb', line 82 def module_podspec_path "#{@modules_path}/#{@root}/#{@name}.podspec" end |