Sha256: e3c28a0c9bc23b8359d09456ab7472825b7447df24fef2ccde6b7d7dbe3f828b
Contents?: true
Size: 241 Bytes
Versions: 15
Compression:
Stored size: 241 Bytes
Contents
# Suraj Kurapati -- http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/261459 class String # Transforms this string into an escaped POSIX shell argument. def shell_escape inspect.gsub(/\\(\d{3})/) {$1.to_i(8).chr} end end
Version data entries
15 entries across 15 versions & 2 rubygems