Class: Command::Results::TextFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/command-set/formatter/base.rb

Overview

The simplest useful Formatter: it outputs the value of every item in tree order. Think of it as what would happen if you just let puts and p go directly to the screen, without the annoying consequences of threading, etc.

Instance Attribute Summary

Attributes inherited from Formatter

#advice

Instance Method Summary collapse

Methods inherited from Formatter

#apply_advice, #closed_begin_list, #closed_end_list, #default_advice, #finish, inherited, #initialize, #notify, #receive_advice, #saw_begin_list, #saw_end_list, #saw_item, #start

Constructor Details

This class inherits a constructor from Command::Results::Formatter

Instance Method Details

#closed_item(value) ⇒ Object



182
183
184
# File 'lib/command-set/formatter/base.rb', line 182

def closed_item(value)
  puts value
end