Sha256: 09b25b70cd70a74cc774c6c2a38c131d25599a70063d89552bd27ec510f5bdce

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

#encoding: utf-8

#Main
module CommandExec
  #Formatting output
  module Formatter
    #Style as simple string
    class String < CommandExec::Formatter::Array

      # convert the prepared output to single string
      #
      # @param [Array,Symbol) fields
      #   the fields which should be outputted
      #
      # @return [String] 
      #   the output formatted as simple string
      def output(*fields)
        prepare_output(fields.flatten).join("\n")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
command_exec-0.2.0 lib/command_exec/formatter/string.rb