Sha256: dab5fd7fc36c591fafbfdb28c88c07f16654099898315b391add19069f8e6433
Contents?: true
Size: 491 Bytes
Versions: 13
Compression:
Stored size: 491 Bytes
Contents
module Kernel # :stopdoc: WINDOWS = %r/djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM DEV_NULL = WINDOWS ? 'NUL:' : '/dev/null' # :startdoc: def cmd_available?( *args ) io = [STDOUT.dup, STDERR.dup] STDOUT.reopen DEV_NULL STDERR.reopen DEV_NULL system(*(args.flatten)) ensure STDOUT.reopen io.first STDERR.reopen io.last $stdout, $stderr = STDOUT, STDERR end def journal @journal ||= ::Webby::Journal.new end end # module Kernel # EOF
Version data entries
13 entries across 13 versions & 8 rubygems