るりまサーチ

最速Rubyリファレンスマニュアル検索!
1732件ヒット [101-200件を表示] (0.150秒)
トップページ > クエリ:sh[x] > 種類:特異メソッド[x]

別のキーワード

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

オブジェクト

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Readline::HISTORY.push(*string) -> self (6101.0)

ヒストリの最後に string で指定した文字列を追加します。複数の string を指定できます。 self を返します。

...ます。

例: "foo"を追加する。

require "readline"

Readline::HISTORY.push("foo")
p Readline::HISTORY[-1] #=> "foo"

例: "foo"、"bar"を追加する。

require "readline"

Readline::HISTORY.push("foo", "bar")
p Readline::HISTORY[-1] #=> "bar"
p Readline::HISTORY[-2] #=> "fo...

Readline::HISTORY.shift -> String (6101.0)

ヒストリの最初の内容を取り出します。 最初の内容は、ヒストリから取り除かれます。

...発生します。

例:

require "readline"

Readline::HISTORY.push("foo", "bar", "baz")
p Readline::HISTORY.shift #=> "foo"
p Readline::HISTORY.shift #=> "bar"
p Readline::HISTORY.shift #=> "baz"

@see Readline::HISTORY.push、Readline::HISTORY.pop、
Readline::HISTORY.delete_at...

WIN32OLE.ole_show_help(obj, helpcontext = nil) -> () (6101.0)

WIN32OLEオブジェクトのヘルプファイルを表示します。

...ファイル
がインストールされていない場合 (failed to open
help file `ファイル名') に通知します。

excel = WIN32OLE.new('Excel.Application')
typeobj = excel.ole_obj_help
WIN32OLE.ole_show_help(typeobj) if typeobj.helpfile...

Shell::Filter.new(sh) -> Shell::Filter (3202.0)

Shell::Filter クラスのインスタンスを返します。 通常このメソッドを直接使う機会は少ないでしょう。

...
Sh
ell::Filter クラスのインスタンスを返します。
通常このメソッドを直接使う機会は少ないでしょう。...

Hash.new {|hash, key| ... } -> Hash (3201.0)

空の新しいハッシュを生成します。ブロックの評価結果がデフォルト値になりま す。設定したデフォルト値はHash#default_procで参照できます。

...の新しいハッシュを生成します。ブロックの評価結果がデフォルト値になりま
す。設定したデフォルト値はHash#default_procで参照できます。

値が設定されていないハッシュ要素を参照するとその都度ブロックを
実行し、その...
...ルト値は全部同一のオブジェクトなので、
# 破壊的変更によって他のキーに対応する値も変更されます。
h = Hash.new("foo")

p h[1] #=> "foo"
p h[1].object_id #=> 6127170
p h[1] << "bar" #=> "foobar"
p h[1] #=> "f...
...だ無いキーが呼び出される度に
# ブロックを評価するので、全て別のオブジェクトになります。
h = Hash.new {|hash, key| hash[key] = "foo"}

p h[1] #=> "foo"
p h[1].object_id #=> 6126900
p h[1] << "bar" #=> "foobar"
p h[1]...

絞り込み条件を変える

Shell.undef_system_command(command) -> Shell::CommandProcessor (3113.0)

commandを削除します.

...するコマンドの文字列を指定します。

動作例:
require 'shell'
Sh
ell.def_system_command("ls")
# ls を定義
Sh
ell.undef_system_command("ls")
# ls を 削除

sh
= Shell.new
begin
sh
.transact {
ls("-l").each {|l|
puts l
}
}
rescue NameEr...

Shell::SystemCommand.new(sh, command, *opts) (3108.0)

@todo

...@todo

@param sh

@param command

@param opts...

Shell::AppendFile.new(sh, filename) (3102.0)

@todo

@todo

Shell::AppendIO.new(sh, filename) (3102.0)

@todo

@todo

Shell::Cat.new(sh, *filenames) (3102.0)

@todo

@todo

絞り込み条件を変える

Shell::Concat.new(sh, *jobs) (3102.0)

@todo

@todo

Shell::Echo.new(sh, *strings) (3102.0)

@todo

@todo

Shell::Glob.new(sh, pattern) (3102.0)

@todo

@todo

Shell::Tee.new(sh, filename) (3102.0)

@todo

@todo

Shell::Void.new(sh, *opts) (3102.0)

絞り込み条件を変える

<< < 1 2 3 4 ... > >>