Sha256: d747f3ad6618f0452efeac2e66dfb2ccf39007f9e82fd95d0be5b8bc65ed123f

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 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,
      'gitlab' => GitlabFormatter,
      'json' => JsonFormatter,
      'checkstyle' => CheckstyleFormatter,
      'text' => TextFormatter
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pronto-0.4.1 lib/pronto/formatter/formatter.rb
pronto-0.4.0 lib/pronto/formatter/formatter.rb