るりまサーチ

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

別のキーワード

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

キーワード

検索結果

Net::FTP#system -> String (24327.0)

サーバーの OS のタイプを返します。

...します。

@
raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@
raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@
raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@
raise Net::FTPReplyError 応...

String#sum(bits = 16) -> Integer (12113.0)

文字列の bits ビットのチェックサムを計算します。

...文字列の bits ビットのチェックサムを計算します。

以下と同じです。

//emlist[][ruby]{
def sum(bits)
sum = 0
each_byte {|c| sum += c }
return 0 if sum == 0
sum & ((1 << bits) - 1)
end
//}

例えば以下のコードで UNIX System V の
sum(1) コマンドと同...
...じ値が得られます。

//emlist[例][ruby]{
sum = 0
ARGF.each_line do |line|
sum += line.sum
end
sum %= 65536
//}

@
param bits チェックサムのビット数...

Shell::SystemCommand#notify(*opts) -> String (9231.0)

@todo

...@todo

@
param opts

@
see Shell#notify...

Shell::SystemCommand#notify(*opts) {|message| ... } -> String (9231.0)

@todo

...@todo

@
param opts

@
see Shell#notify...

Benchmark::Tms#format(fmtstr = nil, *args) -> String (6232.0)

self を指定されたフォーマットで整形して返します。

...el.#format のようにオブジェクトを整形しますが、
以下の拡張を使用することができます。

: %u
user CPU time で置き換えられます。Benchmark::Tms#utime
: %y
system
CPU time で置き換えられます(Mnemonic: y of "s*y*stem")。Benchmark::Tms#stime
: %U...
...er CPU time で置き換えられます。Benchmark::Tms#cutime
: %Y
子プロセスの system CPU time で置き換えられます。Benchmark::Tms#cstime
: %t
t
otal CPU time で置き換えられます。Benchmark::Tms#total
: %r
実経過時間で置き換えられます。Benchmark::Tms#re...
...al
: %n
ラベルで置き換えられます(Mnemonic: n of "*n*ame")。Benchmark::Tms#label

@
param fmtstr フォーマット文字列です。
省略された場合は、Benchmark::Tms::FORMAT が使用されます。
@
param args フォーマットされる引数です。...

絞り込み条件を変える

Shell::SystemCommand#command -> String (6219.0)

@todo

...@todo

コマンド名を返します。...

Shell::SystemCommand#name -> String (6219.0)

@todo

...@todo

コマンド名を返します。...

RDoc::Options#op_dir -> String (3214.0)

コマンドライン引数の --op オプションで指定したディレクトリを返します。

...コマンドライン引数の --op オプションで指定したディレクトリを返します。

--ri、--ri-site、--ri-system オプションにも影響される事に注意してください。

@
return 設定されたディレクトリを文字列で返します。...

Shell::Filter#echo(*strings) -> Shell::Filter (3213.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...Filter オブジェクトを返します.

@
param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(f...
...ile).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...

Shell#echo(*strings) -> Shell::Filter (213.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...Filter オブジェクトを返します.

@
param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(f...
...ile).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...

絞り込み条件を変える

Shell::CommandProcessor#echo(*strings) -> Shell::Filter (213.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

...Filter オブジェクトを返します.

@
param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(f...
...ile).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...