lib/agate.rb in agate-0.5.1 vs lib/agate.rb in agate-0.6.0

- old
+ new

@@ -1,2 +1,15 @@ -require "agate/parser" require "agate/version" + +module Agate + @@parsers = {} + + def self.register_formatter(sym, klass) + @@parsers[sym] = klass + end + + def self.retrieve_formatter(sym) + @@parsers[sym] + end +end + +require "agate/parser"