Class: Argh::Formatters::JCommanderFormatter

Inherits:
BaseFormatter show all
Defined in:
lib/argh/formatters/jcommander_formatter.rb

Instance Method Summary collapse

Methods inherited from BaseFormatter

#attributes, #initialize

Constructor Details

This class inherits a constructor from Argh::Formatters::BaseFormatter

Instance Method Details

#processObject



6
7
8
9
10
11
12
13
# File 'lib/argh/formatters/jcommander_formatter.rb', line 6

def process
  information = []
  attributes.each do |name, value|
    piece = escape(name, value)
    information << piece unless piece.nil?
  end
  information.join ' '
end