Class: CocoapodsTools::Component
- Inherits:
-
Object
- Object
- CocoapodsTools::Component
- Defined in:
- lib/cocoapods-tools/command/git/component.rb
Overview
组件类
Instance Attribute Summary collapse
-
#component_branch ⇒ Object
Returns the value of attribute component_branch.
-
#component_name ⇒ Object
Returns the value of attribute component_name.
-
#component_url ⇒ Object
Returns the value of attribute component_url.
Instance Method Summary collapse
-
#initialize(name, url, branch) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(name, url, branch) ⇒ Component
Returns a new instance of Component.
9 10 11 12 13 |
# File 'lib/cocoapods-tools/command/git/component.rb', line 9 def initialize(name, url, branch) @component_name = name @component_url = url @component_branch = branch end |
Instance Attribute Details
#component_branch ⇒ Object
Returns the value of attribute component_branch.
7 8 9 |
# File 'lib/cocoapods-tools/command/git/component.rb', line 7 def component_branch @component_branch end |
#component_name ⇒ Object
Returns the value of attribute component_name.
7 8 9 |
# File 'lib/cocoapods-tools/command/git/component.rb', line 7 def component_name @component_name end |
#component_url ⇒ Object
Returns the value of attribute component_url.
7 8 9 |
# File 'lib/cocoapods-tools/command/git/component.rb', line 7 def component_url @component_url end |