Class: Ukiryu::StandardOutput
- Inherits:
-
Object
- Object
- Ukiryu::StandardOutput
- Defined in:
- lib/ukiryu/io.rb
Constant Summary collapse
- FILENO =
The stdout file descriptor
1
Class Method Summary collapse
-
.stdout?(path) ⇒ Boolean
Check if a path represents stdout.
Class Method Details
.stdout?(path) ⇒ Boolean
Check if a path represents stdout
177 178 179 180 |
# File 'lib/ukiryu/io.rb', line 177 def self.stdout?(path) path = path.to_s if path.is_a?(Symbol) [$stdout, '-', '/dev/stdout', '%stdout%'].include?(path) end |