Class: Ukiryu::StandardInput
- Inherits:
-
Object
- Object
- Ukiryu::StandardInput
- Defined in:
- lib/ukiryu/io.rb
Overview
Standard input/output file handles
This class represents special file handles for stdin/stdout/stderr that are recognized by CLI tools.
Constant Summary collapse
- FILENO =
The stdin file descriptor
0
Class Method Summary collapse
-
.stdin?(path) ⇒ Boolean
Check if a path represents stdin.
Class Method Details
.stdin?(path) ⇒ Boolean
Check if a path represents stdin
159 160 161 162 |
# File 'lib/ukiryu/io.rb', line 159 def self.stdin?(path) path = path.to_s if path.is_a?(Symbol) [$stdin, '-', '/dev/stdin'].include?(path) end |