diff --git a/lib/twine/formatters.rb b/lib/twine/formatters.rb index fc0e69e..6275526 100644 --- a/lib/twine/formatters.rb +++ b/lib/twine/formatters.rb @@ -4,6 +4,17 @@ module Twine class << self attr_reader :formatters + + ### + # registers a new formatter + # + # formatter_class - the class of the formatter to register + # + # returns array of active formatters + # + def register_formatter formatter_class + @formatters << formatter_class.new + end end end end