Class: TPTree::Formatters::XmlFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- TPTree::Formatters::XmlFormatter
- Defined in:
- lib/tp_tree/formatters/xml_formatter.rb
Overview
XmlFormatter provides XML tag formatting for structured output
Constant Summary
Constants inherited from BaseFormatter
Instance Method Summary collapse
Methods inherited from BaseFormatter
#color_for_depth, #format_parameters, #format_return_value, #format_timing, #format_value
Instance Method Details
#colorize(text, color) ⇒ Object
9 10 11 |
# File 'lib/tp_tree/formatters/xml_formatter.rb', line 9 def colorize(text, color) "<#{color}>#{text}</#{color}>" end |