るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.076秒)

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

キーワード

検索結果

FileUtils#split_all(path) -> Array (6204.0)

与えられたパスをディレクトリごとに分割します。

...与えられたパスをディレクトリごとに分割します。

@param path 分割するパスを指定します。

例:
split_all("a/b/c") # => ['a', 'b', 'c']...

FileUtils#sh(*cmd) {|result, status| ... } (3110.0)

与えられたコマンドを実行します。

...参照してください。


例:
sh %{ls -ltr}

sh 'ls', 'file with spaces'

# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatus})"
end
end

@see Kernel.#exec, Kernel.#system...