Method: Inspec::UI#bold
- Defined in:
- lib/inspec/ui.rb
#bold(str, opts = { print: true }) ⇒ Object
68 69 70 71 |
# File 'lib/inspec/ui.rb', line 68 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 |