クラス
-
ARGF
. class (77) - Array (134)
- BasicObject (44)
- Bignum (12)
- Binding (11)
- Class (11)
- Complex (30)
- Data (4)
- Dir (20)
- Encoding (33)
-
Encoding
:: InvalidByteSequenceError (11) - Enumerator (44)
-
Enumerator
:: Lazy (22) - Exception (11)
- FalseClass (55)
- Fiber (3)
- File (82)
-
File
:: Stat (66) - Fixnum (21)
- Float (106)
- Hash (173)
- IO (351)
- Integer (120)
- MatchData (22)
- Method (22)
- Module (278)
- Mutex (10)
- NilClass (33)
- NoMethodError (14)
- Numeric (59)
- Object (255)
- Proc (24)
-
Process
:: Status (33) - Random (11)
- Range (116)
- Rational (27)
- Regexp (96)
-
RubyVM
:: InstructionSequence (55) - String (305)
- Struct (46)
- Symbol (52)
- SystemExit (11)
- Thread (148)
-
Thread
:: ConditionVariable (18) -
Thread
:: Mutex (45) -
Thread
:: Queue (54) -
Thread
:: SizedQueue (63) - ThreadGroup (11)
- Time (319)
- TracePoint (66)
- TrueClass (33)
- UnboundMethod (22)
モジュール
- Comparable (66)
- Enumerable (149)
- FileTest (239)
- GC (77)
-
GC
:: Profiler (33) - Kernel (264)
- ObjectSpace (55)
- Process (22)
-
Process
:: GID (44) -
Process
:: UID (33) -
RubyVM
:: AbstractSyntaxTree (12) -
RubyVM
:: MJIT (12) - Signal (22)
オブジェクト
- ENV (22)
キーワード
- ! (11)
- !~ (11)
-
$ -W (11) -
$ -v (11) -
$ -w (11) -
$ = (11) -
$ VERBOSE (11) - & (33)
- +@ (9)
- -@ (9)
- < (56)
- << (9)
- <= (56)
- == (217)
- === (69)
- > (56)
- >= (56)
- Complex (12)
- ENV (6)
- FalseClass (11)
- FileTest (11)
- Float (6)
- Integer (6)
- NIL (8)
- NotImplementedError (11)
- Range (11)
- Rational (6)
- Regexp (3)
- Stat (11)
- Status (11)
- String (11)
- TRUE (8)
- TracePoint (11)
- [] (70)
- []= (11)
- ^ (33)
-
_ _ id _ _ (11) -
abort
_ on _ exception (22) -
abort
_ on _ exception= (22) -
absolute
_ path? (5) - alive? (14)
- all? (41)
- allbits? (7)
- allocate (11)
- any? (46)
- anybits? (7)
-
ascii
_ compatible? (11) - atime (11)
- attr (33)
- autoclose= (11)
- autoclose? (11)
- between? (11)
- binmode (11)
- binmode? (22)
-
block
_ given? (11) - blockdev? (11)
- broadcast (9)
- bsearch (44)
- casecmp? (16)
- casefold? (11)
- chardev? (11)
- chunk (33)
-
class
_ variable _ defined? (11) -
class
_ variables (11) - clone (11)
- close (18)
-
close
_ on _ exec= (11) -
close
_ on _ exec? (11) - closed? (31)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - compile (22)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) -
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
- coredump? (11)
- cover? (17)
- dedup (2)
- delete (11)
-
deprecate
_ constant (5) - deq (18)
- directory? (22)
- disable (44)
- dst? (11)
- dummy? (11)
- dup (11)
- each (92)
-
each
_ line (64) -
each
_ object (44) - eid= (22)
- empty? (58)
- enable (33)
- enabled? (22)
- enclosed? (11)
-
end
_ with? (16) - enq (9)
- eof (22)
- eof? (22)
- eql? (148)
- equal? (33)
- even? (17)
-
exclude
_ end? (11) - executable? (11)
-
executable
_ real? (11) - exist? (11)
- exit (22)
- exit! (22)
- exited? (11)
- fcntl (11)
- file? (11)
- finite? (27)
-
fixed
_ encoding? (11) - flock (11)
- fnmatch (11)
- fnmatch? (11)
- foreach (16)
- freeze (11)
- friday? (11)
- frozen? (11)
-
garbage
_ collect (22) - getgm (11)
- getlocal (22)
- gets (48)
- getutc (11)
- glob (8)
- gm (22)
- gmt? (11)
- gmtime (11)
-
grant
_ privilege (22) - grpowned? (22)
-
has
_ key? (11) -
has
_ value? (11) - hash (11)
- identical? (11)
-
ignore
_ deadlock (3) -
ignore
_ deadlock= (3) - include? (55)
-
incomplete
_ input? (11) -
initialize
_ copy (9) - inspect (11)
-
instance
_ methods (11) -
instance
_ of? (11) -
instance
_ variable _ defined? (11) - integer? (22)
- intersect? (3)
- ioctl (11)
-
is
_ a? (11) - isdst (11)
- iterator? (11)
- key? (22)
-
keyword
_ init? (3) -
kind
_ of? (11) - lambda? (11)
-
latest
_ gc _ info (22) - lines (16)
- load (11)
- local (22)
-
local
_ variable _ defined? (11) - localtime (22)
- locked? (11)
- lstat (22)
- match? (24)
- member? (33)
-
method
_ defined? (11) - methods (11)
- mktime (22)
- monday? (11)
- name (4)
- negative? (26)
- new (79)
- nil? (11)
- nobits? (7)
- none? (47)
- odd? (11)
- of (4)
- one? (47)
- owned? (33)
- parameters (2)
- parse (4)
-
parse
_ file (4) - pause (6)
-
pending
_ interrupt? (11) - pipe? (11)
- pop (18)
- positive? (26)
-
private
_ class _ method (15) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
protected
_ instance _ methods (11) -
protected
_ method _ defined? (11) -
public
_ instance _ methods (11) -
public
_ method _ defined? (11) - push (9)
-
raw
_ data (11) -
re
_ exchangeable? (22) -
read
_ nonblock (20) - readable? (11)
-
readable
_ real? (11) - readline (24)
- readlines (48)
- real? (11)
- replicate (11)
-
report
_ on _ exception (16) -
report
_ on _ exception= (16) - require (11)
-
respond
_ to? (11) -
respond
_ to _ missing? (11) - resume (6)
-
ruby2
_ keywords _ hash? (5) - saturday? (11)
- setgid? (11)
- setuid? (11)
- shift (18)
-
sid
_ available? (11) - signal (9)
-
singleton
_ class (11) -
singleton
_ class? (11) -
singleton
_ methods (11) - sleep (11)
- slice (66)
- socket? (11)
- spawn (44)
- start (11)
-
start
_ with? (12) - status (11)
- sticky? (11)
- stop? (11)
- store (11)
- stress= (11)
- success? (22)
- sunday? (11)
- symlink? (22)
- synchronize (11)
- system (44)
- taint (6)
- tainted? (9)
- test (22)
-
thread
_ variable? (11) - thursday? (11)
-
to
_ a (11) -
to
_ s (11) - trap (22)
-
try
_ lock (11) - tuesday? (11)
-
undef
_ method (11) -
unicode
_ normalized? (10) - unlink (11)
- untaint (6)
- untrusted? (3)
- upto (11)
- utc (33)
- utc? (11)
-
valid
_ encoding? (11) - value? (11)
- warn (3)
- wednesday? (11)
- writable? (11)
-
writable
_ real? (11) -
write
_ nonblock (11) - zero? (47)
- | (33)
- ~ (11)
検索結果
先頭5件
-
Object
:: FALSE -> FalseClass (32337.0) -
非推奨です。代表的な偽の値。false と同じ。
...推奨です。代表的な偽の値。false と同じ。
この定数は過去との互換性のために提供されています。擬似変数 false を使ってください。
Ruby では false と nil が偽として扱われます。
偽でない値(false でも nil でもない値) は全て... -
FalseClass
# inspect -> String (20130.0) -
常に文字列 "false" を返します。
...常に文字列 "false" を返します。
//emlist[例][ruby]{
false.to_s # => "false"
//}... -
FalseClass (20050.0)
-
false のクラス。 false は FalseClass クラスの唯一のインスタンスです。 false は nil オブジェクトとともに偽を表し、 その他の全てのオブジェクトは真です。
...false のクラス。
false は FalseClass クラスの唯一のインスタンスです。
false は nil オブジェクトとともに偽を表し、
その他の全てのオブジェクトは真です。... -
Object
# singleton _ methods(inherited _ too = true) -> [Symbol] (17232.0) -
そのオブジェクトに対して定義されている特異メソッド名 (public あるいは protected メソッド) の一覧を返します。
...ド名
(public あるいは protected メソッド) の一覧を返します。
inherited_too が真のときは継承した特異メソッドを含みます。
継承した特異メソッドとは Object#extend によって追加された特異メソッドや、
self がクラスの場合はスー......ingleton_methods(false) は、Object#methods(false) と同じです。
@param inherited_too 継承した特異メソッドを含める場合は真を、
そうでない場合は偽を指定します。
//emlist[例1][ruby]{
Parent = Class.new
class <<Parent
private; def p......rivate_class_parent() end
protected; def protected_class_parent() end
public; def public_class_parent() end
end
Foo = Class.new(Parent)
class <<Foo
private; def private_class_foo() end
protected; def protected_class_foo() end
public; def public_class_foo() end
end
module Bar
p... -
Thread
. report _ on _ exception -> bool (17232.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...を $stderr に報告します。
デフォルトは false です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block......in <main>'
1: from -e:1:in `times'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が......で rescue して、
その例外でスレッドが終了しないようにするのがより良い方法です。
* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレ... -
Thread
. report _ on _ exception=(newstate) (17232.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...を $stderr に報告します。
デフォルトは false です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `block......in <main>'
1: from -e:1:in `times'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が......で rescue して、
その例外でスレッドが終了しないようにするのがより良い方法です。
* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレ... -
Thread
. report _ on _ exception -> bool (17226.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...容を $stderr に報告します。
デフォルトは true です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `blo......ck in <main>'
1: from -e:1:in `times'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が......で rescue して、
その例外でスレッドが終了しないようにするのがより良い方法です。
* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレ... -
Thread
. report _ on _ exception=(newstate) (17226.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...容を $stderr に報告します。
デフォルトは true です。
Thread.new { 1.times { raise } }
は $stderr に以下のように出力します:
#<Thread:...> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
2: from -e:1:in `blo......ck in <main>'
1: from -e:1:in `times'
これによってスレッドのエラーを早期に捕捉できるようになります。
いくつかのケースでは、この出力を望まないかもしれません。
出力を抑制するには複数の方法があります:
* 例外が......で rescue して、
その例外でスレッドが終了しないようにするのがより良い方法です。
* Thread#join や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレ... -
FileTest
. # readable _ real?(file) -> bool (17218.0) -
ファイルがカレントプロセスの実ユーザか実グループによって読み込み可能な時に真を 返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...読み込み可能な時に真を
返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable?... -
Module
# private _ instance _ methods(inherited _ too = true) -> [Symbol] (17214.0) -
そのモジュールで定義されている private メソッド名 の一覧を配列で返します。
...vate メソッド名
の一覧を配列で返します。
@param inherited_too false を指定するとそのモジュールで定義されているメソッドのみ返します。
@see Object#private_methods, Module#instance_methods
//emlist[例][ruby]{
module Foo
def foo; end
private def b......ar; end
end
module Bar
include Foo
def baz; end
private def qux; end
end
Bar.private_instance_methods # => [:qux, :bar]
Bar.private_instance_methods(false) # => [:qux]
//}... -
ObjectSpace
. # garbage _ collect(full _ mark: true , immediate _ sweep: true) -> nil (17214.0) -
どこからも参照されなくなったオブジェクトを回収します。 GC.start と同じです。
...ナー GC を動作させる場合は false を、そうでない場
合は true を指定します。
@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は true を指定します。
注意: これ......数は Ruby の実装やバージョンによって異なりま
す。将来のバージョンとの互換性も保証されません。また、Ruby の実装がサポー
トしていない場合はキーワード引数を指定しても無視される可能性があります。
@see GC.start... -
Thread
# report _ on _ exception -> bool (17214.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...tderr に報告します。
デフォルトはスレッド作成時の Thread.report_on_exception です。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
//emlist[例][ruby]{
a = Thread.new{ Threa......p; raise }
a.report_on_exception = true
a.report_on_exception # => true
a.run
# => #<Thread:0x00007fc3f48c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x0......0007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }
b.report_on_exception = false
b.run # => #<Thread:0x00007fc3f48aefc0@(irb):4 dead>
//}
@see Thread.report_on_exception... -
Thread
# report _ on _ exception=(newstate) (17214.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...tderr に報告します。
デフォルトはスレッド作成時の Thread.report_on_exception です。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
//emlist[例][ruby]{
a = Thread.new{ Threa......p; raise }
a.report_on_exception = true
a.report_on_exception # => true
a.run
# => #<Thread:0x00007fc3f48c7908@(irb):1 run> terminated with exception (report_on_exception is true):
# Traceback (most recent call last):
# (irb):1:in `block in irb_binding': unhandled exception
# #<Thread:0x0......0007fc3f48c7908@(irb):1 dead>
b = Thread.new{ Thread.stop; raise }
b.report_on_exception = false
b.run # => #<Thread:0x00007fc3f48aefc0@(irb):4 dead>
//}
@see Thread.report_on_exception...