ライブラリ
- ビルトイン (398)
- erb (33)
- json (11)
-
json
/ add / exception (11) - logger (33)
-
minitest
/ mock (2) -
minitest
/ unit (39) - mkmf (11)
-
net
/ http (22) -
net
/ imap (11) - openssl (11)
- optparse (66)
- pathname (11)
- rake (407)
-
rake
/ packagetask (11) -
rake
/ testtask (66) -
rubygems
/ source _ index (11) -
rubygems
/ source _ info _ cache (44) -
rubygems
/ specification (55) - set (22)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - strscan (396)
- uri (11)
- win32ole (11)
クラス
-
ARGF
. class (110) - Binding (6)
- Dir (11)
- ERB (33)
- Exception (40)
- File (33)
-
Gem
:: SourceIndex (11) -
Gem
:: SourceInfoCache (44) -
Gem
:: Specification (55) - IO (95)
- Logger (33)
- Method (10)
-
MiniTest
:: Mock (2) -
MiniTest
:: Unit (13) -
MiniTest
:: Unit :: TestCase (3) - Module (5)
-
Net
:: HTTPGenericRequest (22) -
Net
:: IMAP (11) -
OpenSSL
:: BN (11) - OptionParser (66)
- Pathname (11)
-
Rake
:: Application (55) -
Rake
:: FileList (187) -
Rake
:: FileTask (22) -
Rake
:: InvocationChain (33) -
Rake
:: PackageTask (11) -
Rake
:: TaskArguments (11) -
Rake
:: TestTask (66) - Set (22)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - String (55)
- StringScanner (396)
- Thread (22)
- TracePoint (22)
-
URI
:: Generic (11) - WIN32OLE (11)
モジュール
-
Gem
:: InstallUpdateOptions (11) -
JSON
:: Generator :: GeneratorMethods :: String (11) - Kernel (22)
-
MiniTest
:: Assertions (23) -
Rake
:: TaskManager (88)
キーワード
- << (11)
- == (11)
- [] (40)
-
_ _ name _ _ (1) -
_ assertions (1) - append (11)
- assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ raises (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) -
assertion
_ count (1) - atime (11)
-
backtrace
_ locations (33) -
beginning
_ of _ line? (11) - binmode (11)
- body (11)
-
body
_ stream (11) - bol? (11)
-
capture
_ io (1) - check (11)
-
check
_ until (11) - chr (11)
- clear (11)
-
clear
_ exclude (11) - clone (11)
- close (22)
- closed? (11)
- concat (11)
-
const
_ source _ location (5) -
create
_ makefile (11) - ctime (22)
-
datetime
_ format (11) - define (11)
-
define
_ task (11) -
delete
_ if (11) - desc (11)
- dup (11)
-
each
_ char (22) -
each
_ codepoint (22) - empty? (11)
- encoding (11)
- eos? (11)
- errors (1)
-
exception
_ details (1) -
excluded
_ from _ list? (11) - exist? (11)
- existing (11)
- existing! (11)
- expect (1)
- ext (11)
- failures (1)
- fdatasync (11)
- fetch (11)
- flush (11)
- formatter (11)
- getc (11)
- gets (33)
- gsub (11)
- gsub! (11)
-
has
_ test _ suite? (11) -
has
_ unit _ tests? (11) - hash (11)
- import (11)
-
in
_ namespace (11) -
inplace
_ mode (11) - inspect (27)
-
install
_ update _ defaults _ str (11) - intern (11)
-
internal
_ encoding (11) - invoke (11)
-
is
_ a? (11) -
kind
_ of? (11) -
last
_ comment (11) -
last
_ description (11) -
latest
_ cache _ data (11) -
latest
_ cache _ file (11) -
latest
_ specs (11) -
latest
_ system _ cache _ file (11) -
latest
_ user _ cache _ file (11) - length (11)
- libs (11)
- location (1)
- lookup (11)
- match? (11)
- matched (11)
- matched? (11)
-
matched
_ size (11) - member? (11)
- mtime (11)
-
mu
_ pp (1) - name (22)
- needed? (11)
-
on
_ head (11) -
on
_ tail (11) -
original
_ dir (11) -
package
_ files (11) - parse (22)
- parse! (11)
- pass (1)
- passed? (1)
- path (11)
- pathmap (11)
- pattern (11)
- peek (11)
- peep (11)
- pointer (11)
- pos (11)
-
post
_ match (11) -
pre
_ match (11) -
prime
_ fasttest? (11) -
process
_ args (1) - puke (1)
- puts (11)
- rakefile (11)
- read (11)
- reject! (11)
- report (1)
- reset (11)
- resolve (11)
- rest (11)
- rest? (11)
-
rest
_ size (11) - restsize (11)
- result (11)
- run (13)
-
run
_ test _ suites (1) - scan (11)
-
scan
_ full (11) -
scan
_ until (11) -
search
_ full (11) - select (11)
-
set
_ backtrace (11) - size (11)
- skip (11)
-
skip
_ until (11) - skips (1)
-
source
_ location (6) - src (11)
-
start
_ time (1) - status (1)
- string (11)
- sub! (11)
-
synthesize
_ file _ task (11) - terminate (11)
-
test
_ count (1) -
test
_ file (11) -
test
_ files (11) -
test
_ suite _ file (11) -
to
_ a (22) -
to
_ ary (11) -
to
_ json (22) -
to
_ s (27) -
top
_ level _ tasks (11) - unscan (11)
- verify (1)
- warning (11)
-
with
_ defaults (11) - write (7)
検索結果
先頭5件
- StringScanner
# beginning _ of _ line? -> bool - Shell
:: Filter # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil - Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil - Shell
:: CommandProcessor # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil - MiniTest
:: Unit # run _ test _ suites(filter = / . / ) -> Array
-
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...