Module: DTAS::XS
- Included in:
- FadeFX, Player, Player::ClientHandler, Process, Source::AvFfCommon, Source::Sox, Source::Sox, UNIXClient
- Defined in:
- lib/dtas/xs.rb
Overview
We always escape binary strings because paths on POSIX filesystems are encoding agnostic. Shellwords.split does give UTF-8 strings, but nothing cares at that point if the encoding isn't valid (and it's right to not care, again, filesystems can use any byte value in names except '0'.
Instance Method Summary collapse
-
#xs(ary) ⇒ Object
:nodoc:.
Instance Method Details
#xs(ary) ⇒ Object
:nodoc:
12 13 14 |
# File 'lib/dtas/xs.rb', line 12 def xs(ary) Shellwords.join(Array(ary).map(&:b)) end |