Method: Inspec::UI#list_item
- Defined in:
- lib/inspec/ui.rb
#list_item(str, opts = { print: true }) ⇒ Object
Makes a bullet point.
143 144 145 146 147 |
# File 'lib/inspec/ui.rb', line 143 def list_item(str, opts = { print: true }) bullet = color? ? ANSI_CODES[:bold] + ANSI_CODES[:color][:white] + GLYPHS[:bullet] + ANSI_CODES[:reset] : "*" result = " " + bullet + " " + str.to_s + "\n" print_or_return(result, opts[:print]) end |