Class: Bundler::GraphNode

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/graph.rb

Overview

Add version info

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



126
127
128
# File 'lib/bundler/graph.rb', line 126

def dependencies
  @dependencies
end

#is_userObject

Returns the value of attribute is_user.



127
128
129
# File 'lib/bundler/graph.rb', line 127

def is_user
  @is_user
end

#nameObject (readonly)

Returns the value of attribute name.



126
127
128
# File 'lib/bundler/graph.rb', line 126

def name
  @name
end

#versionObject (readonly)

Returns the value of attribute version.



126
127
128
# File 'lib/bundler/graph.rb', line 126

def version
  @version
end