280件ヒット
[1-100件を表示]
(0.200秒)
ライブラリ
クラス
- Array (3)
-
CSV
:: Table (11) -
Encoding
:: Converter (55) - Matrix (12)
- Pathname (16)
-
Psych
:: Handler (11) -
REXML
:: Parsers :: PullParser (11) -
Rake
:: InvocationChain (33) -
Rake
:: InvocationChain :: EmptyInvocationChain (33) - StringScanner (22)
-
Thread
:: Queue (33) -
Thread
:: SizedQueue (33) - ThreadsWait (6)
モジュール
キーワード
- antisymmetric? (6)
- append (22)
-
assert
_ empty (1) - deq (22)
- empty? (30)
- eos? (11)
-
has
_ next? (11) - member? (22)
-
next
_ wait (6) - pop (22)
-
primitive
_ convert (44) -
primitive
_ errinfo (11) - shift (22)
-
skew
_ symmetric? (6) -
to
_ csv (3) -
to
_ s (22) - zero? (8)
検索結果
先頭5件
-
Psych
:: Handler # empty -> () (24118.0) -
empty event が発生したときに呼び出されます。
...
empty event が発生したときに呼び出されます。
実際問題としてこれが呼び出される例は知られていません。... -
MiniTest
:: Assertions # assert _ empty(object , message = nil) -> true (18308.0) -
与えられたオブジェクトが空である場合、検査にパスしたことになります。
...param object 任意のオブジェクトを指定します。
@param message 検査に失敗した場合に表示するメッセージを指定します。
文字列か Proc を指定します。Proc である場合は Proc#call した
結果を使用します。
@rai......se MiniTest::Assertion 与えられたオブジェクトが empty? メソッドを持たない場合に発生します。
また、与えられたオブジェクトが空でない場合にも発生します。... -
Rake
:: InvocationChain :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain (18201.0) -
与えられた値を追加した Rake::InvocationChain を返します。
...与えられた値を追加した Rake::InvocationChain を返します。
@param task_name 追加する値を指定します。... -
REXML
:: Parsers :: PullParser # has _ next? -> bool (15207.0) -
未処理のイベントが残っている場合に真を返します。
...未処理のイベントが残っている場合に真を返します。
@see REXML::Parsers::PullParser#empty?... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (12219.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
...い Rake::InvocationChain を返します。
@param task_name 追加するタスク名を指定します。
@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :......test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}... -
Matrix
# antisymmetric? -> bool (12207.0) -
行列が反対称行列 (交代行列、歪〔わい〕対称行列とも) ならば true を返します。
...ます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が正方行列でない場合に発生します
//emlist[][ruby]{
require 'matrix'
Matrix[[0, -2, Complex(1, 3)], [2, 0, 5], [-Complex(1, 3), -5, 0]].antisymmetric? # => true
Matrix.empty.antisymmetric? # => true
Matrix[[1, 2, 3],......[4, 5, 6], [7, 8, 9]].antisymmetric? # => false
# 対角要素が違う
Matrix[[1, -2, 3], [2, 0, 6], [-3, -6, 0]].antisymmetric? # => false
# 符号が違う
Matrix[[0, 2, -3], [2, 0, 6], [-3, 6, 0]].antisymmetric? # => false
//}... -
ThreadsWait
# next _ wait(nonblock = nil) -> Thread (12207.0) -
指定したスレッドのどれかが終了するまで待ちます。
...まで待ちます。
@param nonblock true を与えると、キューが空の時、例外 ThreadsWait::ErrNoFinishedThread が発生します。
@raise ErrNoWaitingThread 終了をまつスレッドが存在しない時、発生します。
@raise ErrNoFinishedThread nonblock がtrue でかつ......、キューが空の時、発生します。
#使用例
require 'thwait'
threads = []
2.times {|i|
threads << Thread.new { sleep i }
}
thall = ThreadsWait.new
thall.join_nowait(*threads)
until thall.empty?
th = thall.next_wait
p th
end
@see Queue#pop... -
Rake
:: InvocationChain :: EmptyInvocationChain # member?(task _ name) -> bool (12201.0) -
偽を返します。
偽を返します。 -
Pathname
# empty? -> bool (12170.0) -
ディレクトリに対しては Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。
...ては Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。
//emlist[例 ディレクトリの場合][ruby]{
require "pathname"
require 'tmpdir'
Pathname("/usr/local").empty? # => false
Dir.mktmpdir { |dir| Pathname(dir).empty? } # => tru......e
//}
//emlist[例 ファイルの場合][ruby]{
require "pathname"
require 'tempfile'
Pathname("testfile").empty? # => false
Tempfile.create("tmp") { |tmp| Pathname(tmp).empty? } # => true
//}
@see Dir.empty?, FileTest.#empty?, Pathname#zero?... -
StringScanner
# empty? -> bool (12108.0) -
スキャンポインタが文字列の末尾を指しているなら true を、 末尾以外を指しているなら false を返します。
...false を返します。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.eos? # => false
s.scan(/\w+/)
s.scan(/\s+/)
s.scan(/\w+/)
s.eos? # => true
//}
StringScanner#empty? は将来のバージョンで削除される予定です。
代わりに String......Scanner#eos? を使ってください。... -
Rake
:: InvocationChain :: EmptyInvocationChain # to _ s -> String (12101.0) -
'TOP' という文字列を返します。
'TOP' という文字列を返します。 -
CSV
:: Table # empty? -> bool (9138.0) -
ヘッダーを除いて、データがないときに true を返します。
...ーを除いて、データがないときに true を返します。
Array#empty? に委譲しています。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b\n", headers: true)
table = csv.read
p table.empty? # => true
table << [1, 2]
p table.empty? # => false
//}
@see Array#empty?...