Method: NattyUI::Features#quote
- Defined in:
- lib/natty-ui/features.rb
#quote(*text) ⇒ Features
Print given text as a quotation.
215 216 217 218 219 220 221 222 223 224 |
# File 'lib/natty-ui/features.rb', line 215 def quote(*text) width = columns * 0.75 quote = Theme.current.mark(:quote) puts( *text, prefix: quote, prefix_width: quote.width, max_width: width < 20 ? nil : width.round ) end |