Module: Kernel

Defined in:
lib/ext/kernel.rb

Instance Method Summary collapse

Instance Method Details

#interactive?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/ext/kernel.rb', line 2

def interactive?
  STDOUT.tty? && STDERR.tty?
end