Sha256: 1385261f7426b369d50bcbde37d2fcf25f3076c446e8be801c705cf196c227ca

Contents?: true

Size: 323 Bytes

Versions: 4

Compression:

Stored size: 323 Bytes

Contents

require 'sym/app/output/file'
module Sym
  module App
    module Output
      class Stdout < ::Sym::App::Output::Base
        required_option nil
        def output_proc
          ->(argument) do
            printf '%s', argument
            printf "\n" if STDOUT.tty?
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sym-2.6.2 lib/sym/app/output/stdout.rb
sym-2.6.1 lib/sym/app/output/stdout.rb
sym-2.6.0 lib/sym/app/output/stdout.rb
sym-2.5.3 lib/sym/app/output/stdout.rb