Class: Yarrow::Output::Build
- Inherits:
-
Object
- Object
- Yarrow::Output::Build
- Defined in:
- lib/yarrow/output/build.rb
Instance Attribute Summary collapse
-
#graph ⇒ Object
readonly
Returns the value of attribute graph.
-
#output_config ⇒ Object
readonly
Returns the value of attribute output_config.
Instance Method Summary collapse
-
#initialize(graph, output_config) ⇒ Build
constructor
A new instance of Build.
- #reconcile ⇒ Object
Constructor Details
#initialize(graph, output_config) ⇒ Build
Returns a new instance of Build.
6 7 8 9 |
# File 'lib/yarrow/output/build.rb', line 6 def initialize(graph, output_config) @graph = graph @output_config = output_config end |
Instance Attribute Details
#graph ⇒ Object (readonly)
Returns the value of attribute graph.
4 5 6 |
# File 'lib/yarrow/output/build.rb', line 4 def graph @graph end |
#output_config ⇒ Object (readonly)
Returns the value of attribute output_config.
4 5 6 |
# File 'lib/yarrow/output/build.rb', line 4 def output_config @output_config end |
Instance Method Details
#reconcile ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/yarrow/output/build.rb', line 11 def reconcile case output_config.reconcile.match when "collection/resource" then traverse_by_path(:collection, :resource) when "collection" then traverse_by_label(:collection) when "resource" then traverse_by_label(:resource) end end |