Class: Yacs::Cli::Printer
- Inherits:
-
Object
- Object
- Yacs::Cli::Printer
- Defined in:
- lib/yacs/cli/printer.rb
Class Method Summary collapse
Class Method Details
.print(items, fields) ⇒ Object
5 6 7 8 9 |
# File 'lib/yacs/cli/printer.rb', line 5 def print items, fields items.each do |item| puts fields.map { |f| item[f] }.join("\t") end end |