Class: Dox::Printers::ResourcePrinter

Inherits:
BasePrinter show all
Defined in:
lib/dox/printers/resource_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_printer.rb', line 4

def print(resource)
  self.resource = resource
  add_resources

  resource.actions.each do |_, action|
    action_printer.print(action)
  end
end