Class: Bundler::Graph
- Inherits:
-
Object
- Object
- Bundler::Graph
- Defined in:
- lib/bundler/graph.rb
Defined Under Namespace
Classes: GraphVizClient
Constant Summary collapse
- GRAPH_NAME =
:Gemfile
Instance Attribute Summary collapse
-
#edge_options ⇒ Object
readonly
Returns the value of attribute edge_options.
-
#groups ⇒ Object
readonly
Returns the value of attribute groups.
-
#node_options ⇒ Object
readonly
Returns the value of attribute node_options.
-
#output_file ⇒ Object
readonly
Returns the value of attribute output_file.
-
#output_format ⇒ Object
readonly
Returns the value of attribute output_format.
-
#relations ⇒ Object
readonly
Returns the value of attribute relations.
Instance Method Summary collapse
-
#initialize(env, output_file, show_version = false, show_requirements = false, output_format = "png", without = []) ⇒ Graph
constructor
A new instance of Graph.
- #viz ⇒ Object
Constructor Details
#initialize(env, output_file, show_version = false, show_requirements = false, output_format = "png", without = []) ⇒ Graph
Returns a new instance of Graph.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/bundler/graph.rb', line 6 def initialize(env, output_file, show_version = false, show_requirements = false, output_format = "png", without = []) @env = env @output_file = output_file @show_version = show_version @show_requirements = show_requirements @output_format = output_format @without_groups = without.map(&:to_sym) @groups = [] @relations = Hash.new {|h, k| h[k] = Set.new} @node_options = {} @edge_options = {} _patching_gem_dependency_class _populate_relations end |
Instance Attribute Details
#edge_options ⇒ Object (readonly)
Returns the value of attribute edge_options.
23 24 25 |
# File 'lib/bundler/graph.rb', line 23 def @edge_options end |
#groups ⇒ Object (readonly)
Returns the value of attribute groups.
23 24 25 |
# File 'lib/bundler/graph.rb', line 23 def groups @groups end |
#node_options ⇒ Object (readonly)
Returns the value of attribute node_options.
23 24 25 |
# File 'lib/bundler/graph.rb', line 23 def @node_options end |
#output_file ⇒ Object (readonly)
Returns the value of attribute output_file.
23 24 25 |
# File 'lib/bundler/graph.rb', line 23 def output_file @output_file end |
#output_format ⇒ Object (readonly)
Returns the value of attribute output_format.
23 24 25 |
# File 'lib/bundler/graph.rb', line 23 def output_format @output_format end |
#relations ⇒ Object (readonly)
Returns the value of attribute relations.
23 24 25 |
# File 'lib/bundler/graph.rb', line 23 def relations @relations end |
Instance Method Details
#viz ⇒ Object
25 26 27 |
# File 'lib/bundler/graph.rb', line 25 def viz GraphVizClient.new(self).run end |