るりまサーチ

最速Rubyリファレンスマニュアル検索!
1740件ヒット [1-100件を表示] (0.130秒)
トップページ > クエリ:-[x] > クエリ:I[x] > クエリ:>[x] > クエリ:test[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. ipaddr to_i

キーワード

検索結果

<< 1 2 3 ... > >>

StringScanner#beginning_of_line? -> bool (21507.0)

スキャンポインタが行頭を指しているなら true を、 行頭以外を指しているなら false を返します。

...ことです。
文字列末尾は必ずしも行頭ではありません。

//emlist[例][ruby]{
require 'strscan'

s = StringScanner.new("test\nstring")
s.bol? # => true
s.scan(/\w+/)
s.bol? # => false
s.scan(/\n/)
s.bol? # => true
s.scan(/\w+/)
s.bol? # => false
//}...

Shell::Filter#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (18730.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...l.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@param file...
...@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "...
...foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

Shell#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (15730.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...l.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@param file...
...@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "...
...foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (15730.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...l.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@param file...
...@param file2 文字列でファイルへのパスを指定します。

require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "...
...foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...

MiniTest::Unit#run_test_suites(filter = /./) -> Array (15402.0)

全てのテストを実行します。

...全てのテストを実行します。

@param filter 実行するテストメソッド名を正規表現で指定します。

@return テストケース数とアサーション数を返します。...

絞り込み条件を変える

ARGF.class#internal_encoding -> Encoding | nil (12555.0)

ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。

...nil を返します。

まだ読み込み処理を始めていない場合は Encoding.default_external を返します。

ARGF.class#set_encoding で設定します。


例:
# $ ruby -Eutf-8 test.rb

# test.rb
ARGF.internal_encoding # => #<Encoding:UTF-8>
ARGF.set_encoding('u...
...tf-8','ascii')
ARGF.internal_encoding # => #<Encoding:US-ASCII>

例:
ARGF.binmode
ARGF.internal_encoding # => nil

@see IO, ARGF.class#external_encoding...

OpenSSL::BN#prime_fasttest?(checks=nil, vtrivdiv=true) -> bool (12419.0)

自身が素数であるなら true を返します。

...す。

vtrivdiv が真である場合には、 Miller-Rabin 法での
判定の前に小さな素数で割ることで素数か否かを
調べます。自身が小さな素数である場合にはこの手順
により素数ではないと誤った返り値を返します。

Miller-Rabin 法に...
...nilである場合は OpenSSL が適切な
回数を判断します。

//emlist[][ruby]{
require 'openssl'

# 181 は 「小さな素数」である
OpenSSL::BN.new("181").prime_fasttest?(nil, true) # => false
OpenSSL::BN.new("181").prime_fasttest?(nil, false) # => true
//}

@param checks Miller-Ro...
...bin法の繰り返しの回数
@param vtrivdiv 真なら小さな素数で割ることでの素数判定を試みます
@raise OpenSSL::BNError 判定時にエラーが発生
@see OpenSSL::BN#prime?...

Gem::Specification#test_file -> String (12418.0)

Gem::Specification#test_files の単数バージョンです。

...Gem::Specification#test_files の単数バージョンです。...

Gem::Specification#test_suite_file -> String (12418.0)

この属性は非推奨です。 Gem::Specification#test_files を使用してください。

...この属性は非推奨です。 Gem::Specification#test_files を使用してください。...

Gem::Specification#has_test_suite? -> bool (12402.0)

このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。

...このメソッドは非推奨です。 Gem::Specification#has_unit_tests? を使用してください。...

絞り込み条件を変える

Gem::Specification#test_files -> [String] (12402.0)

ユニットテストのファイルのリストを返します。

ユニットテストのファイルのリストを返します。

MiniTest::Unit#test_count -> Fixnum (12402.0)

テストケース数を返します。

テストケース数を返します。

Gem::SourceInfoCache#latest_cache_file -> String (12401.0)

使用可能な最新のキャッシュファイル名を返します。

...のキャッシュファイル名を返します。

システムキャッシュが使用可能な場合はシステムキャッシュのファイル名を返します。
そうでない場合はユーザーキャッシュのファイル名を返します。

@see Gem::SourceInfoCache#cache_file...
<< 1 2 3 ... > >>