Module: Escaping
- Included in:
- ForStub, PosixProxy
- Defined in:
- lib/shell-proxy/posix/escaping.rb
Instance Method Summary collapse
Instance Method Details
#__escapinate(v) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/shell-proxy/posix/escaping.rb', line 2 def __escapinate(v) case v when RawString v.quote when BareString v when String "'#{v.gsub(/'/, "\\'").gsub("\\", "\\\\")}'" when Fixnum v end end |