Class: Puppet::SimpleGraph::VertexWrapper
- Defined in:
- lib/puppet/simple_graph.rb
Overview
Stub class to allow graphs to be represented in YAML using the old (version 2.6) format.
Instance Attribute Summary collapse
-
#adjacencies ⇒ Object
readonly
Returns the value of attribute adjacencies.
-
#vertex ⇒ Object
readonly
Returns the value of attribute vertex.
Instance Method Summary collapse
-
#initialize(vertex, adjacencies) ⇒ VertexWrapper
constructor
A new instance of VertexWrapper.
- #inspect ⇒ Object
Constructor Details
#initialize(vertex, adjacencies) ⇒ VertexWrapper
Returns a new instance of VertexWrapper.
491 492 493 494 |
# File 'lib/puppet/simple_graph.rb', line 491 def initialize(vertex, adjacencies) @vertex = vertex @adjacencies = adjacencies end |
Instance Attribute Details
#adjacencies ⇒ Object (readonly)
Returns the value of attribute adjacencies.
490 491 492 |
# File 'lib/puppet/simple_graph.rb', line 490 def adjacencies @adjacencies end |
#vertex ⇒ Object (readonly)
Returns the value of attribute vertex.
490 491 492 |
# File 'lib/puppet/simple_graph.rb', line 490 def vertex @vertex end |
Instance Method Details
#inspect ⇒ Object
496 497 498 |
# File 'lib/puppet/simple_graph.rb', line 496 def inspect { :@adjacencies => @adjacencies, :@vertex => @vertex.to_s }.inspect end |