Method: Inspec::UI#initialize

Defined in:
lib/inspec/ui.rb

#initialize(opts = {}) ⇒ UI

Returns a new instance of UI.



39
40
41
42
43
# File 'lib/inspec/ui.rb', line 39

def initialize(opts = {})
  @color = opts[:color].nil? ? true : opts[:color]
  @interactive = opts[:interactive].nil? ? $stdout.isatty : opts[:interactive]
  @io = opts[:io] || $stdout
end