るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.008秒)
トップページ > クエリ:join[x] > 種類:モジュール関数[x]

別のキーワード

  1. _builtin join
  2. socket ipv6_join_group
  3. socket mcast_join_group
  4. socket mcast_join_source_group
  5. uri join

ライブラリ

モジュール

キーワード

検索結果

Shellwords.#shelljoin(array) -> String (6101.0)

配列の各要素である文字列に対して、Bourne シェルのコマンドライン中で安全に 使えるためのエスケープを適用し、空白文字を介してそれらを連結したコマンド ライン文字列を生成します。

...る配列を指定します。
@return エスケープ結果を連結した文字列を返します。

例:
require 'shellwords'

pattern = 'Jan 15'
file = 'file name with spaces'
puts Shellwords.shelljoin(['grep', pattern, file])
# => grep Jan\ 15 file\ name\ with\ spaces...

WEBrick::HTTPUtils.#escape(str) -> String (13.0)

与えられた文字列を数値参照文字列に変換します。

...表現を使用して変換します。

control = (0x0..0x1f).collect{|c| c.chr }.join + "\x7f"
space = " "
delims = '<>#%"'
unwise = '{}|\\^[]`'
nonascii = (0x80..0xff).collect{|c| c.chr }.join
/[#{Regexp.escape(control + space + delims + unwise + nonascii)}]/n

@param str 文...