Class: Argh::Formatters::JCommanderFormatter
- Inherits:
-
BaseFormatter
- Object
- BaseFormatter
- Argh::Formatters::JCommanderFormatter
- Defined in:
- lib/argh/formatters/jcommander_formatter.rb
Instance Method Summary collapse
Methods inherited from BaseFormatter
Constructor Details
This class inherits a constructor from Argh::Formatters::BaseFormatter
Instance Method Details
#process ⇒ Object
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 |