るりまサーチ

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

別のキーワード

  1. rake sh
  2. fileutils sh
  3. _builtin lock_sh
  4. constants lock_sh
  5. sync sh

ライブラリ

クラス

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

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

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

...経由しないでコマンドを実行します。

@
param 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...

Shell::ProcessController#shell -> Shell (9216.0)

@todo

...@todo...

Hash.ruby2_keywords_hash?(hash) -> bool (9206.0)

Module#ruby2_keywordsやProc#ruby2_keywordsによる ruby2_keywords フラグが設定されているかどうかを返します。

...れていません。

ruby 2.7.1 で追加されたため、ruby 2.7.0 では定義されていません。

//emlist[][ruby]{
ruby2_keywords def foo(*args)
Hash.ruby2_keywords_hash?(args.last)
end
foo(k: 1) # => true
foo({k: 1}) # => false
//}

@
see Module#ruby2_keywords, Proc#ruby2_keywords...

Shell#pushd(path = nil, &block) -> object (9172.0)

カレントディレクトリをディレクトリスタックにつみ, カレントディレク トリをpathにする. pathが省略されたときには, カレントディレクトリと ディレクトリスタックのトップを交換する. イテレータとして呼ばれたと きには, ブロック実行中のみpushdする.

...みpushdする.

@
param path カレントディレクトリをpathにする。文字列で指定します。

@
param block イテレータとして呼ぶ場合, ブロックを指定します。

動作例
require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
sh
.pushd("/tmp")
p sh.cwd #=>...
..."/tmp"
sh
.pushd("/usr")
p sh.cwd #=> "/usr"
sh
.popd
p sh.cwd #=> "/tmp"
sh
.pushd("/usr/local"){
p sh.cwd #=> "/usr/local"
}
p sh.cwd #=> "/tmp"...

Shell#pushdir(path = nil, &block) -> object (9172.0)

カレントディレクトリをディレクトリスタックにつみ, カレントディレク トリをpathにする. pathが省略されたときには, カレントディレクトリと ディレクトリスタックのトップを交換する. イテレータとして呼ばれたと きには, ブロック実行中のみpushdする.

...みpushdする.

@
param path カレントディレクトリをpathにする。文字列で指定します。

@
param block イテレータとして呼ぶ場合, ブロックを指定します。

動作例
require 'shell'
Sh
ell.verbose = false
sh
= Shell.new
sh
.pushd("/tmp")
p sh.cwd #=>...
..."/tmp"
sh
.pushd("/usr")
p sh.cwd #=> "/usr"
sh
.popd
p sh.cwd #=> "/tmp"
sh
.pushd("/usr/local"){
p sh.cwd #=> "/usr/local"
}
p sh.cwd #=> "/tmp"...

絞り込み条件を変える

Shell::CommandProcessor.add_delegate_command_to_shell(id) (9122.0)

@todo

...@todo

Sh
ell 自体を初期化する時に呼び出されるメソッドです。
ユーザが使用することはありません。

@
param id メソッド名を指定します。...

Hash#rehash -> self (9118.0)

キーのハッシュ値を再計算します。

...す。

@
raise RuntimeError Hash#eachなどのイテレータの評価途中でrehashすると発生します。
@
return selfを返します。

//emlist[例][ruby]{
a = [ "a", "b" ]
h = { a => 100 }

p h[a] #=> 100

a[0] = "z"
p h[a] #=> nil

h.rehash
p h[a] #=> 100
//}

@
see Obje...

Shellwords.#shellsplit(line) -> [String] (9118.0)

Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。

...ブルクォート (")、バックスラッシュ (\)
を解釈します。

@
param line 分割の対象となる文字列を指定します。
@
return 分割結果の各文字列を要素とする配列を返します。
@
raise ArgumentError 引数の中に対でないシングルクォートまた...
...ォートが現れた場合に発生します。

例:
require 'shellwords'

p Shellwords.shellwords(%q{ foo bar "foo bar"\ baz 'foo bar' })
# => ["foo", "bar", "foo bar baz", "foo bar"]

p Shellwords.shellwords(%q{ A B C "D E F" "G","H I" })
# => ["A", "B", "C", "D...

Shellwords.#shellwords(line) -> [String] (9118.0)

Bourne シェルの単語分割規則に従った空白区切りの単語分割を行い、 単語 (文字列) の配列を返します。

...ブルクォート (")、バックスラッシュ (\)
を解釈します。

@
param line 分割の対象となる文字列を指定します。
@
return 分割結果の各文字列を要素とする配列を返します。
@
raise ArgumentError 引数の中に対でないシングルクォートまた...
...ォートが現れた場合に発生します。

例:
require 'shellwords'

p Shellwords.shellwords(%q{ foo bar "foo bar"\ baz 'foo bar' })
# => ["foo", "bar", "foo bar baz", "foo bar"]

p Shellwords.shellwords(%q{ A B C "D E F" "G","H I" })
# => ["A", "B", "C", "D...

RSS::XMLStyleSheetMixin#xml_stylesheets (9116.0)

@todo

...@todo...

絞り込み条件を変える

RSS::XMLStyleSheetMixin#xml_stylesheets= (9116.0)

@todo

...@todo...
<< 1 2 3 ... > >>