Class: Ukiryu::StandardError

Inherits:
Object
  • Object
show all
Defined in:
lib/ukiryu/io.rb

Constant Summary collapse

FILENO =

The stderr file descriptor

2

Class Method Summary collapse

Class Method Details

.stderr?(path) ⇒ Boolean

Check if a path represents stderr

Parameters:

  • path (String, Symbol)

    the path to check

Returns:

  • (Boolean)

    true if the path represents stderr



191
192
193
194
# File 'lib/ukiryu/io.rb', line 191

def self.stderr?(path)
  path = path.to_s if path.is_a?(Symbol)
  [:stderr, '/dev/stderr'].include?(path)
end