Class: CommandExec::Formatter::String
- Defined in:
- lib/command_exec/formatter/string.rb
Overview
Style as simple string
Instance Attribute Summary
Attributes inherited from Array
Instance Method Summary collapse
-
#output(*fields) ⇒ String
convert the prepared output to single string.
Methods inherited from Array
Methods included from CommandExec::FieldHelper
#end_time, #executable, #initialize, #log_file, #pid, #reason_for_failure, #return_code, #start_time, #stderr, #stdout
Constructor Details
This class inherits a constructor from CommandExec::Formatter::Array
Instance Method Details
#output(*fields) ⇒ String
convert the prepared output to single string
17 18 19 |
# File 'lib/command_exec/formatter/string.rb', line 17 def output(*fields) prepare_output(fields.flatten).join("\n") end |