Class: Flatito::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/flatito/renderer.rb

Defined Under Namespace

Classes: Plain, TTY

Class Method Summary collapse

Class Method Details

.build(options) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/flatito/renderer.rb', line 9

def self.build(options)
  if Config.stdout.tty?
    Renderer::TTY.new(options)
  else
    Renderer::Plain.new(options)
  end
end