Module: Command::Results

Defined in:
lib/command-set/results.rb,
lib/command-set/result-list.rb,
lib/command-set/formatter/xml.rb,
lib/command-set/formatter/base.rb,
lib/command-set/formatter/strategy.rb

Overview

This is the output management module for CommandSet. With an eye towards being a general purpose UI library, and motivated by the need to manage pretty serious output management, the Results module provides a reasonably sophisticated output train that runs like this:

  1. An OutputStandin intercepts normal output and feeds it to ...
  2. A Collector aggregates output from OutputStandins and explicit #item and #list calls and feeds to to ...
  3. A Presenter handles the stream of output from Collector objects and emits saw and closed events to one or more ...
  4. Formatter objects, which interpret those events into user-readable output.

Defined Under Namespace

Classes: Collector, Formatter, List, ListEnd, ListItem, ListIterator, Presenter, StrategyFormatter, TextFormatter, XMLFormatter