Sha256: fef56fdc1a05ccd2af7a05b7650b4ecbf4c24ee4d507eba483773f75a4e1b2a7

Contents?: true

Size: 352 Bytes

Versions: 11

Compression:

Stored size: 352 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
            self.stdout.printf '%s', argument
            self.stdout.printf "\n" if self.stdout.tty?
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sym-3.0.2 lib/sym/app/output/stdout.rb
sym-3.0.1 lib/sym/app/output/stdout.rb
sym-3.0.0 lib/sym/app/output/stdout.rb
sym-2.10.0 lib/sym/app/output/stdout.rb
sym-2.8.5 lib/sym/app/output/stdout.rb
sym-2.8.4 lib/sym/app/output/stdout.rb
sym-2.8.2 lib/sym/app/output/stdout.rb
sym-2.8.1 lib/sym/app/output/stdout.rb
sym-2.8.0 lib/sym/app/output/stdout.rb
sym-2.7.0 lib/sym/app/output/stdout.rb
sym-2.6.3 lib/sym/app/output/stdout.rb