325件ヒット
[201-300件を表示]
(0.011秒)
別のキーワード
ライブラリ
- ビルトイン (69)
- csv (24)
- dbm (12)
- gdbm (12)
- matrix (12)
-
minitest
/ spec (1) -
minitest
/ unit (1) -
net
/ http (24) - pathname (9)
- psych (12)
- pty (12)
- rake (36)
-
rexml
/ document (24) -
rexml
/ parsers / pullparser (12) -
rubygems
/ package / tar _ header (12) - sdbm (12)
- set (9)
- strscan (24)
- thread (2)
- thwait (6)
クラス
- Array (12)
-
CSV
:: Row (12) -
CSV
:: Table (12) - DBM (12)
- GDBM (12)
-
Gem
:: Package :: TarHeader (12) - Hash (12)
- Matrix (12)
-
Net
:: HTTP (24) - Object (1)
-
PTY
:: ChildExited (12) - Pathname (9)
-
Psych
:: Handler (12) -
REXML
:: Elements (12) -
REXML
:: Parsers :: PullParser (12) -
REXML
:: Text (12) -
Rake
:: InvocationChain :: EmptyInvocationChain (36) - SDBM (12)
- Set (12)
- String (12)
- StringScanner (24)
- Symbol (12)
-
Thread
:: Queue (12) -
Thread
:: SizedQueue (8) - ThreadsWait (6)
モジュール
キーワード
- append (12)
-
assert
_ empty (1) -
close
_ on _ empty _ response (12) -
close
_ on _ empty _ response= (12) - empty (12)
- empty? (227)
- eos? (12)
- member? (12)
-
must
_ be _ empty (1) - status (12)
-
to
_ s (12)
検索結果
先頭5件
-
Set
# empty? -> bool (6101.0) -
集合が要素を 1 つも持たないときに true を返します。
...集合が要素を 1 つも持たないときに true を返します。
//emlist[][ruby]{
require 'set'
p Set[10, 20].empty? # => false
p Set[].empty? # => true
//}... -
String
# empty? -> bool (6101.0) -
文字列が空 (つまり長さ 0) の時、真を返します。
...文字列が空 (つまり長さ 0) の時、真を返します。
//emlist[例][ruby]{
"hello".empty? #=> false
" ".empty? #=> false
"".empty? #=> true
//}... -
StringScanner
# empty? -> bool (6101.0) -
スキャンポインタが文字列の末尾を指しているなら true を、 末尾以外を指しているなら false を返します。
...by]{
require 'strscan'
s = StringScanner.new('test string')
s.eos? # => false
s.scan(/\w+/)
s.scan(/\s+/)
s.scan(/\w+/)
s.eos? # => true
//}
StringScanner#empty? は将来のバージョンで削除される予定です。
代わりに StringScanner#eos? を使ってください。... -
Symbol
# empty? -> bool (6101.0) -
自身が :"" (length が 0 のシンボル)かどうかを返します。
...自身が :"" (length が 0 のシンボル)かどうかを返します。
:"".empty? #=> true
:foo.empty? #=> false
@see String#empty?... -
Thread
:: Queue # empty? -> bool (6101.0) -
キューが空の時、真を返します。
...キューが空の時、真を返します。
//emlist[例][ruby]{
require 'thread'
q = Queue.new
q.empty? # => true
q.push(:resource)
q.empty? # => false
//}......キューが空の時、真を返します。
//emlist[例][ruby]{
q = Queue.new
q.empty? # => true
q.push(:resource)
q.empty? # => false
//}... -
Thread
:: SizedQueue # empty? -> bool (6101.0) -
キューが空の時、真を返します。
キューが空の時、真を返します。 -
ThreadsWait
# empty? -> bool (6101.0) -
同期されるスレッドが存在するならば true をかえします。
...ッドが存在するならば true をかえします。
使用例
require 'thwait'
threads = []
3.times {|i|
threads << Thread.new { sleep 1; p Thread.current }
}
thall = ThreadsWait.new
p thall.threads.empty? #=> true
thall.join(*threads)
p thall.threads.empty? #=> false... -
PTY
:: ChildExited # status -> Process :: Status (3001.0) -
子プロセスの終了ステータスをProcess::Statusオブジェクトで返します。
子プロセスの終了ステータスをProcess::Statusオブジェクトで返します。 -
Rake
:: InvocationChain :: EmptyInvocationChain # append(task _ name) -> Rake :: InvocationChain (3001.0) -
与えられた値を追加した Rake::InvocationChain を返します。
与えられた値を追加した Rake::InvocationChain を返します。
@param task_name 追加する値を指定します。 -
Rake
:: InvocationChain :: EmptyInvocationChain # member?(task _ name) -> bool (3001.0) -
偽を返します。
偽を返します。
