Module: Holder::StreamType
- Defined in:
- lib/holder/stream_type.rb
Overview
Type matcher for the +in:+/+out:+/+err:+ redirect arguments. Defined under
Holder -- NOT core ::IO -- and matches only real IO instances
($stdin/$stdout/$stderr, File, pipe ends). Integer
fds, path strings, StringIO, Tempfile and other duck types are rejected at
validation, so a stray run(in: 0) raises up front instead of slipping
through and detonating later inside a pump.
Class Method Summary collapse
Class Method Details
.===(other) ⇒ Object
10 |
# File 'lib/holder/stream_type.rb', line 10 def self.===(other) = other.is_a?(::IO) |