Class: Sym::App::Output::Stdout

Inherits:
Base show all
Defined in:
lib/sym/app/output/stdout.rb

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Sym::App::Output::Base

Instance Method Details

#output_procObject



7
8
9
10
11
12
# File 'lib/sym/app/output/stdout.rb', line 7

def output_proc
  ->(argument) do
    self.stdout.printf '%s', argument
    self.stdout.printf "\n" if self.stdout.tty?
  end
end