るりまサーチ

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

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. rsa d=
  4. rsa d
  5. matrix d

ライブラリ

モジュール

キーワード

検索結果

<< < 1 2 >>

IRB::ExtendCommand::Help#execute(*names) -> nil (3007.0)

RI から Ruby のドキュメントを参照します。

...Enter the method name you want to look up.
You can use tab to autocomplete.
Enter a blank line to exit.

>> String#match
String#match

(from ruby core)
------------------------------------------------------------------------------
str.match(pattern) -> matchdata or nil
s...
...tr.match(pattern, pos) -> matchdata or nil
......

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

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

...aram cmd 引数の解釈に関しては Kernel.#exec を参照してください。


例:
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...
<< < 1 2 >>