Sha256: ec83d6fe5513d2d2b840148f57724bb39aa8657ac5ac667c3d2ba19e1f6e1571

Contents?: true

Size: 415 Bytes

Versions: 4

Compression:

Stored size: 415 Bytes

Contents

module Pronto
  module Formatter
    def self.get(name)
      formatter = FORMATTERS[name.to_s] || TextFormatter
      formatter.new
    end

    def self.names
      FORMATTERS.keys
    end

    FORMATTERS = {
      'github' => GithubFormatter,
      'github_pr' => GithubPullRequestFormatter,
      'json' => JsonFormatter,
      'checkstyle' => CheckstyleFormatter,
      'text' => TextFormatter
    }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pronto-0.3.3 lib/pronto/formatter/formatter.rb
pronto-0.3.2 lib/pronto/formatter/formatter.rb
pronto-0.3.1 lib/pronto/formatter/formatter.rb
pronto-0.3.0 lib/pronto/formatter/formatter.rb