Module: Yamlint::Output

Defined in:
lib/yamlint/output.rb,
lib/yamlint/output/base.rb,
lib/yamlint/output/github.rb,
lib/yamlint/output/colored.rb,
lib/yamlint/output/parsable.rb,
lib/yamlint/output/standard.rb

Defined Under Namespace

Classes: Base, Colored, Github, Parsable, Standard

Class Method Summary collapse

Class Method Details

.get(format) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/yamlint/output.rb', line 11

def self.get(format)
  case format.to_s
  when 'standard'
    Standard.new
  when 'parsable'
    Parsable.new
  when 'colored', 'auto'
    Colored.new
  when 'github'
    Github.new
  else
    raise ArgumentError, "Unknown output format: #{format}"
  end
end