Class: Dox::Printers::ResourceGroupPrinter

Inherits:
BasePrinter
  • Object
show all
Defined in:
lib/dox/printers/resource_group_printer.rb

Instance Attribute Summary

Attributes inherited from BasePrinter

#spec

Instance Method Summary collapse

Methods inherited from BasePrinter

#find_or_add, #format_desc, #formatted_body, #initialize, #pretty_xml, #read_file

Constructor Details

This class inherits a constructor from Dox::Printers::BasePrinter

Instance Method Details



4
5
6
7
8
9
10
11
# File 'lib/dox/printers/resource_group_printer.rb', line 4

def print(resource_group)
  self.resource_group = resource_group
  add_resource_group

  resource_group.resources.each do |_, resource|
    resource_printer.print(resource)
  end
end