Class: HammerCLI::Output::Adapter::Base
- Defined in:
- lib/hammer_cli/output/adapter/base.rb
Constant Summary collapse
- GROUP_INDENT =
" "*2
- LABEL_DIVIDER =
": "
Instance Method Summary collapse
Methods inherited from Abstract
#initialize, #print_error, #print_message
Constructor Details
This class inherits a constructor from HammerCLI::Output::Adapter::Abstract
Instance Method Details
#print_records(fields, data) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/hammer_cli/output/adapter/base.rb', line 11 def print_records(fields, data) self.fields = fields data.each do |d| fields.collect do |f| render_field(f, d) end puts end end |
#tags ⇒ Object
7 8 9 |
# File 'lib/hammer_cli/output/adapter/base.rb', line 7 def [:flat, :screen] end |