クラス
-
ARGF
. class (33) - Array (198)
- BasicObject (33)
- Binding (6)
- Complex (55)
- Data (4)
-
Encoding
:: Converter (253) -
Encoding
:: InvalidByteSequenceError (44) -
Encoding
:: UndefinedConversionError (55) -
Enumerator
:: Lazy (22) - Exception (146)
- Fiber (5)
- File (11)
- Float (44)
- Hash (44)
- IO (253)
- Integer (36)
- LocalJumpError (11)
- Method (22)
- Module (161)
- Mutex (2)
- NilClass (33)
- Numeric (44)
- Object (152)
- Proc (16)
- Rational (315)
- Regexp (55)
- RubyVM (11)
-
RubyVM
:: InstructionSequence (214) - SignalException (55)
- StopIteration (11)
- String (195)
- Symbol (32)
- Thread (93)
-
Thread
:: Backtrace :: Location (77) -
Thread
:: ConditionVariable (36) -
Thread
:: Mutex (9) -
Thread
:: Queue (27) -
Thread
:: SizedQueue (45) - Time (192)
- TracePoint (17)
- UnboundMethod (22)
モジュール
- Enumerable (212)
-
File
:: Constants (315) - GC (16)
- Kernel (255)
- Marshal (22)
- Process (99)
オブジェクト
- ENV (11)
キーワード
-
$ ! (11) -
$ -d (11) -
$ DEBUG (11) - * (11)
- ** (11)
- + (11)
- -@ (8)
-
/ (11) - <=> (11)
- == (22)
- === (11)
- APPEND (11)
- BINARY (11)
-
CLOCK
_ MONOTONIC (11) -
CLOCK
_ MONOTONIC _ COARSE (11) -
CLOCK
_ MONOTONIC _ FAST (11) -
CLOCK
_ MONOTONIC _ PRECISE (11) -
CLOCK
_ MONOTONIC _ RAW (11) -
CLOCK
_ MONOTONIC _ RAW _ APPROX (11) -
CLOCK
_ SECOND (11) - CREAT (11)
- Complex (12)
- ConditionVariable (9)
- ConverterNotFoundError (11)
- DIRECT (11)
- DSYNC (11)
- EPSILON (11)
- EXCL (11)
-
FNM
_ CASEFOLD (11) -
FNM
_ DOTMATCH (11) -
FNM
_ EXTGLOB (11) -
FNM
_ NOESCAPE (11) -
FNM
_ PATHNAME (11) -
FNM
_ SYSCASE (11) - Float (6)
-
INSTRUCTION
_ NAMES (11) -
INTERNAL
_ CONSTANTS (11) - Integer (6)
- InvalidByteSequenceError (11)
-
LOCK
_ EX (11) -
LOCK
_ NB (11) -
LOCK
_ SH (11) -
LOCK
_ UN (11) -
MAJOR
_ VERSION (11) -
MINOR
_ VERSION (11) - NOATIME (11)
- NOCTTY (11)
- NOFOLLOW (11)
- NONBLOCK (11)
- NULL (11)
- RDONLY (11)
- RDWR (11)
- RSYNC (11)
-
RUBY
_ DESCRIPTION (11) -
RUBY
_ ENGINE _ VERSION (9) -
RUBY
_ REVISION (11) -
RUBY
_ VERSION (11) - Rational (11)
-
SHARE
_ DELETE (9) - SYNC (11)
- TMPFILE (9)
- TRUNC (11)
- Thread (11)
- UndefinedConversionError (11)
- WRONLY (11)
-
abort
_ on _ exception (22) - abs (8)
-
absolute
_ path (22) -
ascii
_ only? (11) -
asciicompat
_ encoding (22) - at (13)
- autoload (22)
- autoload? (22)
- backtrace (11)
-
backtrace
_ locations (33) -
base
_ label (22) - binread (11)
- broadcast (9)
- byteindex (2)
-
caller
_ locations (22) - capitalize (16)
- capitalize! (8)
- cause (11)
- ceil (11)
-
clock
_ gettime (11) - clone (77)
-
close
_ on _ exec= (11) -
close
_ on _ exec? (11) - coerce (11)
-
collect
_ concat (33) - combination (22)
- compile (22)
-
compile
_ file (11) -
compile
_ option (11) - concat (38)
- conj (22)
- conjugate (22)
-
const
_ added (2) -
const
_ defined? (11) -
const
_ get (11) -
const
_ set (11) -
const
_ source _ location (5) - constants (22)
- convert (22)
- convpath (11)
- daemon (11)
- deconstruct (2)
-
deconstruct
_ keys (2) -
define
_ singleton _ method (22) - denominator (11)
-
deprecate
_ constant (9) - deq (18)
-
destination
_ encoding (33) -
destination
_ encoding _ name (22) - detect (22)
- disasm (22)
- disassemble (22)
- downcase (16)
- downcase! (8)
- dup (44)
- each (66)
-
each
_ cons (22) -
each
_ line (66) - encode (33)
- encode! (22)
- enq (9)
-
error
_ bytes (11) -
error
_ char (11) - eval (11)
- exception (33)
- exec (44)
- fdiv (11)
- fetch (11)
- find (22)
- finish (11)
-
first
_ lineno (11) -
flat
_ map (33) - flock (11)
- floor (11)
- gm (22)
-
handle
_ interrupt (11) - hash (11)
-
ignore
_ deadlock (3) -
incomplete
_ input? (11) -
insert
_ output (11) - inspect (55)
-
instruction
_ sequence (6) - intersection (5)
- label (22)
-
last
_ error (11) - lineno (11)
-
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) - local (22)
- magnitude (8)
-
marshal
_ dump (11) - mktime (22)
-
module
_ function (19) - mon (11)
- monday? (11)
- month (11)
- negative? (8)
- new (133)
- none? (47)
- nonzero? (11)
- numerator (11)
- of (11)
- one? (47)
- partition (33)
- path (22)
-
pending
_ interrupt? (11) - permutation (22)
- pop (18)
- positive? (8)
-
primitive
_ convert (44) -
primitive
_ errinfo (11) -
private
_ constant (11) -
public
_ constant (11) - push (9)
- putback (22)
- quo (22)
- raise (5)
-
raised
_ exception (11) - rationalize (99)
-
read
_ nonblock (22) - reason (11)
-
remove
_ const (11) -
repeated
_ combination (22) -
repeated
_ permutation (22) - replacement (11)
- replacement= (11)
-
report
_ on _ exception (16) -
report
_ on _ exception= (8) -
respond
_ to? (11) -
respond
_ to _ missing? (11) - result (11)
- round (11)
- rpartition (11)
-
ruby2
_ keywords (10) -
search
_ convpath (11) - seek (11)
-
set
_ backtrace (11) -
set
_ encoding (22) - shift (18)
- signal (9)
- signm (11)
- signo (11)
-
singleton
_ class (11) -
singleton
_ class? (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) -
slice
_ before (22) -
source
_ encoding (22) -
source
_ encoding _ name (11) -
source
_ location (39) - spawn (44)
- strftime (11)
- subsec (11)
- swapcase (16)
- swapcase! (8)
- synchronize (11)
- syscall (11)
- system (44)
-
to
_ a (11) -
to
_ binary (9) -
to
_ f (11) -
to
_ i (11) -
to
_ r (77) -
to
_ s (33) -
to
_ tty? (7) - truncate (11)
-
try
_ convert (58) - union (17)
- upcase (16)
- upcase! (8)
- utc (22)
-
verify
_ compaction _ references (5) - wait (9)
- write (22)
-
write
_ nonblock (11) - zone (11)
検索結果
先頭5件
-
Rational
# -(other) -> Rational | Float (21214.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r - 1 # => (-1/4)
r - 0.5 # => 0.25
//}... -
Thread
# report _ on _ exception -> bool (12340.0) -
真の場合、そのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...ad.report_on_exception です。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを true か false で指定します。
//emlist[例][ruby]{
a = Thread.new{ Thread.stop; raise }
a.report_on_exception = true
a.report_on_exception # => tr......: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:0x00007fc3f48c7908@(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 -> bool (12334.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、その内容を $stderr に報告します。
...derr に以下のように出力します:
#<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'
これによってスレッドのエラーを早期に捕捉でき......oin や Thread#value でそのスレッドの終了を待つことが保証できるなら、
スレッド開始時に Thread.current.report_on_exception = false でレポートを無効化しても
安全です。しかし、この場合、例外をハンドルするのが遅れたり、親......いて
終了を待つことができなかったりするかもしれません。
スレッドごとに設定する方法は Thread#report_on_exception= を参照してください。
@param newstate スレッド実行中に例外発生した場合、その内容を報告するかどうかを... -
Thread
# abort _ on _ exception -> bool (12322.0) -
真の場合、そのスレッドが例外によって終了した時に、インタプリタ 全体を中断させます。false の場合、あるスレッドで起こった例 外は、Thread#join などで検出されない限りそのスレッ ドだけをなにも警告を出さずに終了させます。
...ionを参照してください。
@param newstate 自身を実行中に例外発生した場合、インタプリタ全体を終了させるかどうかを true か false で指定します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.abort_on_exception # => false
thread.abort_on......_exception = true
thread.abort_on_exception # => true
//}... -
Thread
. abort _ on _ exception -> bool (12322.0) -
真の時は、いずれかのスレッドが例外によって終了した時に、インタプリタ 全体を中断させます。false の場合、あるスレッドで起こった例外は、Thread#join などで検出されない限りそのスレッドだけをなにも警告を出さずに終了させます。
...ad#exceptionを参照してください。
@param newstate スレッド実行中に例外発生した場合、インタプリタ全体を終了させるかどうかを true か false で指定します。
//emlist[例][ruby]{
Thread.abort_on_exception # => false
Thread.abort_on_exception = true
Th......read.abort_on_exception # => true
//}... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (12302.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...B.const_source_location('C4') # => ["test.rb", 12]
p B.const_source_location('C3') # => ["test.rb", 7]
p B.const_source_location('C1') # => ["test.rb", 2]
p B.const_source_location('C3', false) # => nil -- include したモジュールは検索しない
p A.const_......source_location('C2') # => ["test.rb", 16] -- 最後に定義された位置を返す
p Object.const_source_location('B') # => ["test.rb", 10] -- Object はトップレベルの定数を検索する
p Object.const_source_location('A') # => ["test.rb", 1] -- クラスが再定......const_source_location('A') # => ["test.rb", 1] -- Object を継承している為
p M.const_source_location('A') # => ["test.rb", 1] -- Object は継承していないが追加で modules をチェックする
p Object.const_source_location('A::C1') # => ["test.rb", 2] --... -
Process
:: CLOCK _ MONOTONIC -> Integer | Symbol (12302.0) -
Process.#clock_gettime で使われます。
...Process.#clock_gettime で使われます。
システムによっては :MACH_ABSOLUTE_TIME_BASED_CLOCK_MONOTONIC です。
システムによっては定義されていません。... -
Process
:: CLOCK _ MONOTONIC _ COARSE -> Integer (12302.0) -
Process.#clock_gettime で使われます。
Process.#clock_gettime で使われます。
システムによっては定義されていません。 -
Process
:: CLOCK _ MONOTONIC _ FAST -> Integer (12302.0) -
Process.#clock_gettime で使われます。
Process.#clock_gettime で使われます。
システムによっては定義されていません。 -
Process
:: CLOCK _ MONOTONIC _ PRECISE -> Integer (12302.0) -
Process.#clock_gettime で使われます。
Process.#clock_gettime で使われます。
システムによっては定義されていません。 -
Process
:: CLOCK _ MONOTONIC _ RAW -> Integer (12302.0) -
Process.#clock_gettime で使われます。
Process.#clock_gettime で使われます。
システムによっては定義されていません。