597件ヒット
[1-100件を表示]
(0.156秒)
種類
- インスタンスメソッド (519)
- 特異メソッド (34)
- 定数 (22)
- モジュール関数 (11)
- 文書 (11)
ライブラリ
- ビルトイン (217)
- fiddle (33)
-
irb
/ context (22) - mkmf (22)
- openssl (55)
- pathname (11)
- prettyprint (1)
- prime (11)
-
rubygems
/ user _ interaction (11) - set (22)
- shell (36)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (99)
- win32ole (11)
- zlib (11)
クラス
- Array (3)
- BasicSocket (44)
-
Fiddle
:: Pointer (33) -
IRB
:: Context (22) - Integer (120)
- Numeric (11)
- Object (6)
-
OpenSSL
:: PKey :: EC :: Point (44) - Pathname (11)
- PrettyPrint (1)
- Set (22)
- Shell (36)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) -
Socket
:: Option (55) - Thread (22)
- TracePoint (55)
-
Zlib
:: Inflate (11)
モジュール
-
Gem
:: UserInteraction (11) - Kernel (33)
-
OpenSSL
:: ASN1 (11) -
WIN32OLE
:: VARIANT (11)
キーワード
- < (11)
- <= (11)
- == (33)
- === (11)
- > (11)
- >= (11)
- BOOLEAN (11)
-
VT
_ BOOL (11) - [] (18)
- allbits? (7)
- anybits? (7)
-
ask
_ yes _ no (11) - data (11)
- debug (12)
- debug? (12)
- disable (22)
- disjoint? (11)
- enable (22)
- enabled? (11)
- eql? (22)
- even? (11)
- first? (1)
- getsockopt (11)
-
ignore
_ sigint (11) -
ignore
_ sigint? (11) - infinity? (11)
- integer? (11)
- intersect? (14)
- linger (11)
- mountpoint? (11)
- new (11)
- nobits? (7)
- null? (11)
- odd? (11)
-
on
_ curve? (11) -
pending
_ interrupt? (22) - prime? (11)
- recvmsg (11)
-
ruby 1
. 8 . 4 feature (11) - setsockopt (22)
-
sync
_ point? (11) - tainted? (6)
- test (29)
-
to
_ s (11) -
try
_ link (22)
検索結果
先頭5件
-
Socket
:: Option # bool -> bool (21208.0) -
オプションのデータ(内容)を真偽値に変換して返します。
...オプションのデータ(内容)を真偽値に変換して返します。
@raise TypeError dataのバイト数が不適切である(sizeof(int)と異なる)場合に発生します
@see Socket::Option#data... -
Thread
# pending _ interrupt?(error = nil) -> bool (18401.0) -
self の非同期例外のキューが空かどうかを返します。
...self の非同期例外のキューが空かどうかを返します。
@param error 対象の例外クラスを指定します。
@see Thread.pending_interrupt?... -
Thread
. pending _ interrupt?(error = nil) -> bool (18401.0) -
非同期割り込みのキューが空かどうかを返します。
...Thread.handle_interrupt は非同期割り込みの発生を延期させるのに使
用しますが、本メソッドは任意の非同期割り込みが存在するかどうかを確認す
るのに使用します。
本メソッドが true を返した場合、Thread.handle_interrupt で例外......だちに発生させる。
def Thread.kick_interrupt_immediately
Thread.handle_interrupt(Object => :immediate) {
Thread.pass
}
end
=== 使い方
th = Thread.new{
Thread.handle_interrupt(RuntimeError => :on_blocking){
while true
...
# ここまでで......
if Thread.pending_interrupt?
Thread.handle_interrupt(Object => :immediate){}
end
...
end
}
}
...
th.raise # スレッド停止。
この例は以下のように記述する事もできます。
flag = true
th = Thread.new{
Thread.handle_in... -
OpenSSL
:: PKey :: EC :: Point # infinity? -> bool (18301.0) -
自身が無限遠点であるならば true を返します。
...自身が無限遠点であるならば true を返します。
@raise OpenSSL::PKey::EC::Point::Error エラーが生じた場合に発生します
@see OpenSSL::PKey::EC::Point#set_to_infinity!... -
IRB
:: Context # ignore _ sigint -> bool (15402.0) -
Ctrl-C が入力された時に irb を終了するかどうかを返します。
...Ctrl-C が入力された時に irb を終了するかどうかを返します。
false の時は irb を終了します。true の時は以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を......中止する.
デフォルト値は true です。
@see IRB::Context#ignore_sigint=... -
IRB
:: Context # ignore _ sigint? -> bool (15402.0) -
Ctrl-C が入力された時に irb を終了するかどうかを返します。
...Ctrl-C が入力された時に irb を終了するかどうかを返します。
false の時は irb を終了します。true の時は以下のように動作します。
: 入力中
これまで入力したものをキャンセルしトップレベルに戻る.
: 実行中
実行を......中止する.
デフォルト値は true です。
@see IRB::Context#ignore_sigint=... -
Array
# intersect?(other) -> bool (12301.0) -
other と共通の要素が少なくとも1個あれば true を、なければ false を返します。
...other と共通の要素が少なくとも1個あれば true を、なければ false を返します。
//emlist[例][ruby]{
a = [ 1, 2, 3 ]
b = [ 3, 4, 5 ]
c = [ 5, 6, 7 ]
a.intersect?(b) # => true
a.intersect?(c) # => false
//}... -
Numeric
# integer? -> bool (12301.0) -
自身が Integer かそのサブクラスのインスタンスの場合にtrue を返し ます。そうでない場合に false を返します。
... Integer かそのサブクラスのインスタンスの場合にtrue を返し
ます。そうでない場合に false を返します。
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emlist[例][ruby]{
(1.0).integer? #=> false
(1).int......eger? #=> true
//}
@see Numeric#real?... -
Object
# tainted? -> bool (12301.0) -
...オブジェクトの汚染に関してはspec/safelevelを参照してください。
//emlist[][ruby]{
p String.new.tainted? #=> false
p ENV['OS'].tainted? #=> true
//}
このメソッドは Ruby 2.7から deprecated で、Ruby 3.2 で削除予定です。
@see Object#taint,Object#untaint... -
Pathname
# mountpoint? -> bool (12301.0) -
self がマウントポイントであれば真を返します。
...self がマウントポイントであれば真を返します。
//emlist[例][ruby]{
require "pathname"
path = Pathname("/")
path.mountpoint? # => true
path = Pathname("/usr")
path.mountpoint? # => false
//}... -
Set
# disjoint?(set) -> bool (12301.0) -
self と set が互いに素な集合である場合に true を返します。
...は Set#intersect? を
使用します。
@param self Set オブジェクトを指定します。
@raise ArgumentError 引数が Set オブジェクトでない場合に発生します。
//emlist[][ruby]{
require 'set'
p Set[1, 2, 3].disjoint? Set[3, 4] # => false
p Set[1, 2, 3].disjoint? Set[4,......5] # => true
//}
@see Set#intersect?...