Class: Dox::Printers::ActionPrinter
- Inherits:
-
BasePrinter
- Object
- BasePrinter
- Dox::Printers::ActionPrinter
- Defined in:
- lib/dox/printers/action_printer.rb
Instance Attribute Summary
Attributes inherited from BasePrinter
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
#print(action) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/dox/printers/action_printer.rb', line 4 def print(action) self.action = action @action_hash = find_or_add(find_or_add(spec, action.path.to_s), action.verb.downcase.to_sym) add_action add_action_params print_examples end |