Method: Sym::App::Commands::ShowExamples#example
- Defined in:
- lib/sym/app/commands/show_examples.rb
#example(comment: nil, command: nil, echo: nil, result: nil) ⇒ Object
73 74 75 76 77 78 79 80 |
# File 'lib/sym/app/commands/show_examples.rb', line 73 def example(comment: nil, command: nil, echo: nil, result: nil) out = [] out << "# #{comment}".white.dark.italic if comment out << command if command out << echo if echo out << result if result out << '—'*80 end |