class String
公共实例方法
shellescape → string 点击切换源代码
转义 str,使其可以安全地在 Bourne shell 命令行中使用。
详情请参阅 Shellwords.shellescape。
# File shellwords.rb, line 238 def shellescape Shellwords.escape(self) end
shellsplit → array 点击切换源代码
将 str 分割成一个标记数组,分割方式与 UNIX Bourne shell 相同。
详情请参阅 Shellwords.shellsplit。
# File shellwords.rb, line 227 def shellsplit Shellwords.split(self) end