Method: Inspec::UI#bold

Defined in:
lib/inspec/ui.rb

#bold(str, opts = { print: true }) ⇒ Object



66
67
68
69
# File 'lib/inspec/ui.rb', line 66

def bold(str, opts = { print: true })
  result = color? ? io.print(ANSI_CODES[:bold] + str.to_s + ANSI_CODES[:reset]) : str.to_s
  print_or_return(result, opts[:print])
end