Class: TYCiCore::TYPodNode
- Inherits:
-
Object
- Object
- TYCiCore::TYPodNode
- Defined in:
- lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb
Instance Attribute Summary collapse
-
#node_dep ⇒ Object
Returns the value of attribute node_dep.
-
#nodes ⇒ Object
Returns the value of attribute nodes.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#pod_item ⇒ Object
Returns the value of attribute pod_item.
Instance Method Summary collapse
- #add_pod_item(item) ⇒ Object
-
#initialize ⇒ TYPodNode
constructor
A new instance of TYPodNode.
- #join_node(node) ⇒ Object
Constructor Details
#initialize ⇒ TYPodNode
Returns a new instance of TYPodNode.
6 7 8 9 10 11 |
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 6 def initialize @node_dep = 0 @parent = '' @nodes = Hash.new @pod_item = nil end |
Instance Attribute Details
#node_dep ⇒ Object
Returns the value of attribute node_dep.
4 5 6 |
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 4 def node_dep @node_dep end |
#nodes ⇒ Object
Returns the value of attribute nodes.
4 5 6 |
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 4 def nodes @nodes end |
#parent ⇒ Object
Returns the value of attribute parent.
4 5 6 |
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 4 def parent @parent end |
#pod_item ⇒ Object
Returns the value of attribute pod_item.
4 5 6 |
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 4 def pod_item @pod_item end |
Instance Method Details
#add_pod_item(item) ⇒ Object
18 19 20 |
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 18 def add_pod_item(item) @pod_item = item if item end |
#join_node(node) ⇒ Object
13 14 15 16 |
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 13 def join_node(node) node.parent = @pod_item.name nodes[node.pod_item.name] = node end |