Class: Bundler::GraphNode
- Inherits:
-
Object
- Object
- Bundler::GraphNode
- Defined in:
- lib/bundler/graph.rb
Overview
Add version info
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#is_user ⇒ Object
Returns the value of attribute is_user.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(name, version) ⇒ GraphNode
constructor
A new instance of GraphNode.
Constructor Details
#initialize(name, version) ⇒ GraphNode
Returns a new instance of GraphNode.
119 120 121 122 123 124 |
# File 'lib/bundler/graph.rb', line 119 def initialize(name, version) @name = name @version = version @is_user = false @dependencies = [] end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
126 127 128 |
# File 'lib/bundler/graph.rb', line 126 def dependencies @dependencies end |
#is_user ⇒ Object
Returns the value of attribute is_user.
127 128 129 |
# File 'lib/bundler/graph.rb', line 127 def is_user @is_user end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
126 127 128 |
# File 'lib/bundler/graph.rb', line 126 def name @name end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
126 127 128 |
# File 'lib/bundler/graph.rb', line 126 def version @version end |