るりまサーチ

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n
  3. rsa n=
  4. openssl n
  5. openssl n=

クラス

キーワード

検索結果

<< < ... 31 32 33 >>

Gem::Format#spec -> Gem::Specification (201.0)

Gem の Gem::Specification を返します。

...Gem の Gem::Specification を返します。...

Gem::OldFormat#spec -> Gem::Specification (201.0)

Gem の Gem::Specification を返します。

...Gem の Gem::Specification を返します。...

Rake::GemPackageTask#gem_spec -> Gem::Specification (201.0)

package ターゲットで使用する gemspec を返します。

package ターゲットで使用する gemspec を返します。

gemspec にはパッケージ名、バージョン、パッケージに含まれるファイルなどが定義
されているので、それらを明示的に指定する必要はありません。

WEBrick::HTTPRequest#server_cert -> OpenSSL::X509::Certificate (201.0)

サーバ証明書を表すオブジェクトを返します。

...サーバ証明書を表すオブジェクトを返します。

@see OpenSSL::X509::Certificate...

Array#all?(pattern) -> bool (107.0)

すべての要素が真である場合に true を返します。 偽である要素があれば、ただちに false を返します。

...pattern ブロックの代わりに各要素に対して pattern === item を評価します。

//emlist[例][ruby]{
# すべて正の数か?
p [5, 6, 7].all? {|v| v > 0 } # => true
p [5, -1, 7].all? {|v| v > 0 } # => false
p [].all? {|v| v > 0 } # => true
p %w[ant bear cat].all?(...
.../t/) # => false
//}

@see Enumerable#all?...

絞り込み条件を変える

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

実行すると, それらを内容とする 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
(file).each { |l|
echo...

Shell#glob(pattern) -> Shell::Filter (107.0)

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

...ます.

@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。

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

@see Dir.[]...

Shell::Filter#each(rs = nil) -> () (107.0)

フィルタの一行ずつをblockに渡します。

...行ずつをblockに渡します。

@param rs レコードセパレーターを表す文字列を指定します。
n
il ならば、Shell.record_separatorの値が使用されます。

使用例
require 'shell'
sh = Shell.new
sh.cat("/etc/passwd").each { |line|
puts line
}...

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

実行すると, それらを内容とする 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
(file).each { |l|
echo...

Shell::Filter#glob(pattern) -> Shell::Filter (107.0)

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

...ます.

@param pattern シェルコマンド glob に与えるパターンを指定します。
パターンの書式については、Dir.[] を参照してください。

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

@see Dir.[]...

絞り込み条件を変える

Shell::Filter#to_a -> [String] (107.0)

実行結果を文字列の配列で返します。

...実行結果を文字列の配列で返します。

require 'shell'
Shell.def_system_command("wc")
sh = Shell.new
puts sh.cat("/etc/passwd").to_a...

Shell::Filter#to_s -> String (107.0)

実行結果を文字列で返します。

...実行結果を文字列で返します。

require 'shell'
Shell.def_system_command("wc")
sh = Shell.new

sh.transact {
puts (cat("/etc/passwd") | wc("-l")).to_s
}...

Shell::Filter#|(filter) -> object (25.0)

パイプ結合を filter に対して行います。

...@return filter を返します。

使用例
require 'shell'
Shell.def_system_command("tail")
Shell.def_system_command("head")
Shell.def_system_command("wc")
sh = Shell.new
sh.transact {
i = 1
while i <= (cat("/etc/passwd") | wc("-l")).to_s.chomp.to_i
puts (cat("/etc/pass...
...wd") | head("-n #{i}") | tail("-n 1")).to_s
i += 1
end
}...
<< < ... 31 32 33 >>