Registry for formatters
# File lib/hammer_cli/output/formatters.rb, line 22 def formatter_for_type(type) @_formatters[type.name.split('::').last.to_sym] end
# File lib/hammer_cli/output/formatters.rb, line 14 def register_formatter(type, *formatters) if @_formatters[type].nil? @_formatters[type] = FormatterContainer.new *formatters else formatters.each { |f| @_formatters[type].add_formatter(f) } end end
Generated with the Darkfish Rdoc Generator 2.