クラス
-
ARGF
. class (368) - Array (1463)
- BasicObject (33)
- Bignum (57)
- Binding (10)
- Class (11)
- Complex (13)
- Data (4)
- Dir (149)
-
Encoding
:: Converter (11) - Enumerator (99)
-
Enumerator
:: ArithmeticSequence (53) -
Enumerator
:: Chain (18) -
Enumerator
:: Lazy (320) -
Enumerator
:: Yielder (27) - Exception (33)
- FalseClass (11)
- Fiber (3)
- File (110)
-
File
:: Stat (110) - Fixnum (54)
- Float (106)
- Hash (590)
- IO (668)
- Integer (125)
- LoadError (11)
- MatchData (92)
- Method (32)
- Module (258)
- NilClass (11)
- Numeric (173)
- Object (114)
-
ObjectSpace
:: WeakMap (11) - Proc (111)
-
Process
:: Status (33) - Random (33)
- Range (189)
- Rational (132)
- Regexp (77)
-
RubyVM
:: InstructionSequence (11) - String (977)
- Struct (99)
- Symbol (173)
- SystemCallError (11)
- Thread (128)
-
Thread
:: Backtrace :: Location (44) -
Thread
:: Queue (63) -
Thread
:: SizedQueue (36) - Time (22)
- TracePoint (128)
- TrueClass (11)
- UnboundMethod (32)
モジュール
- Enumerable (1206)
キーワード
- % (18)
- & (6)
- * (17)
- ** (17)
- + (17)
- +@ (9)
- - (17)
- -@ (9)
-
/ (17) - < (11)
- << (23)
- <= (11)
- <=> (129)
- == (22)
- === (11)
- =~ (33)
- > (11)
- >= (11)
- >> (12)
- [] (263)
- ^ (6)
- abs (6)
-
absolute
_ path (22) -
add
_ trace _ func (11) - advise (11)
- all? (47)
- angle (22)
- any? (56)
-
append
_ features (11) - arg (22)
- arity (11)
- assoc (22)
- at (11)
- atime (11)
- autoclose? (11)
- autoload? (11)
- backtrace (11)
-
backtrace
_ locations (22) -
base
_ label (11) - begin (16)
- binding (11)
- binmode (11)
- blockdev? (11)
- bsearch (44)
-
bsearch
_ index (18) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (50)
- byteslice (33)
- call (11)
-
callee
_ id (11) - capitalize! (11)
- casecmp (22)
- casecmp? (16)
- cause (11)
- ceil (23)
- chardev? (11)
- chars (50)
- children (6)
- chomp! (11)
- chop! (11)
- chown (11)
- chr (11)
- chunk (33)
-
chunk
_ while (19) -
class
_ eval (22) -
class
_ exec (11) - clear (9)
- clone (11)
- close (9)
-
close
_ read (11) -
close
_ write (11) - closed? (9)
- codepoints (50)
- collect (55)
- collect! (22)
-
collect
_ concat (33) - combination (22)
- compact (19)
- compact! (19)
- count (66)
- ctime (11)
- curry (22)
- cycle (44)
- dedup (2)
- default (22)
-
default
_ proc (11) -
default
_ proc= (11) -
defined
_ class (11) - delete (44)
- delete! (11)
-
delete
_ at (11) -
delete
_ if (44) -
delete
_ prefix! (7) -
delete
_ suffix! (7) - deq (18)
- detect (22)
- dig (27)
- div (6)
- downcase! (11)
- downto (22)
-
drop
_ while (55) - dup (11)
- each (288)
-
each
_ byte (66) -
each
_ char (66) -
each
_ child (12) -
each
_ codepoint (66) -
each
_ cons (22) -
each
_ entry (22) -
each
_ grapheme _ cluster (14) -
each
_ index (22) -
each
_ key (22) -
each
_ line (132) -
each
_ pair (44) -
each
_ slice (22) -
each
_ value (22) -
each
_ with _ index (22) -
each
_ with _ object (22) - eager (5)
- encode (33)
- end (17)
-
enum
_ for (44) - eof (11)
- eof? (11)
- errno (11)
-
eval
_ script (6) - event (11)
- exitstatus (11)
-
extend
_ object (11) -
external
_ encoding (11) - fcntl (11)
- fdatasync (11)
- fdiv (17)
- fetch (73)
-
fetch
_ values (18) - fileno (10)
- fill (66)
- filter (54)
- filter! (24)
-
filter
_ map (15) - find (22)
-
find
_ all (33) -
find
_ index (66) - first (56)
-
flat
_ map (33) - flatten (11)
- flatten! (11)
- flock (11)
- floor (24)
- flush (11)
- getbyte (33)
- getc (22)
- gets (66)
-
grapheme
_ clusters (14) - grep (33)
-
grep
_ v (31) -
group
_ by (22) - gsub (44)
- gsub! (44)
- index (44)
- infinite? (19)
- inject (33)
-
inplace
_ mode (11) -
inplace
_ mode= (11) - inspect (44)
-
instance
_ eval (22) -
instance
_ exec (11) -
instance
_ method (11) -
instance
_ variable _ get (11) -
instruction
_ sequence (6) -
internal
_ encoding (22) - invert (11)
- join (22)
-
keep
_ if (44) - lambda? (11)
- last (34)
-
last
_ error (11) - lazy (11)
- length (9)
- lineno (11)
- lines (106)
-
local
_ variables (10) - lstat (11)
- lstrip! (11)
- magnitude (6)
- map (55)
- map! (22)
- match (55)
- max (118)
-
max
_ by (44) - merge (22)
- merge! (22)
-
method
_ id (11) - min (118)
-
min
_ by (44) - minmax (42)
-
minmax
_ by (22) -
module
_ eval (22) -
module
_ exec (11) -
module
_ function (12) - modulo (6)
- mtime (11)
- name (11)
- none? (47)
- nonzero? (11)
- offset (22)
- one? (47)
- owner (22)
- pack (19)
- parameters (6)
- partition (22)
- path (46)
- permutation (22)
- phase (22)
- pid (11)
- pop (40)
- pos (22)
- pos= (22)
- pread (7)
- private (16)
- product (22)
- protected (16)
- public (16)
- pwrite (7)
- quo (22)
-
raised
_ exception (11) - rand (33)
- rassoc (22)
- read (33)
-
read
_ nonblock (20) - readbyte (11)
- readlines (33)
- reduce (33)
- reject (77)
- reject! (44)
- remainder (14)
-
repeated
_ combination (22) -
repeated
_ permutation (22) -
respond
_ to? (11) -
return
_ value (11) -
reverse
_ each (44) - rewind (11)
- rindex (44)
- round (34)
- rstrip! (11)
- sample (44)
- scan (22)
- scrub (33)
- scrub! (33)
- seek (11)
- select (99)
- select! (44)
-
set
_ backtrace (11) -
set
_ encoding _ by _ bom (5) -
set
_ trace _ func (11) - setgid? (11)
- setuid? (11)
- shift (51)
- size (54)
- size? (11)
- slice (154)
- slice! (33)
-
slice
_ after (42) -
slice
_ before (55) -
slice
_ when (21) - socket? (11)
- sort (44)
- sort! (22)
-
sort
_ by (22) -
sort
_ by! (22) - source (11)
-
source
_ location (33) - split (12)
- squeeze! (11)
- stat (11)
- status (11)
- step (112)
- sticky? (11)
- stopsig (11)
- strip! (11)
- sub (33)
- sub! (33)
- subsec (11)
- succ (3)
- sum (49)
-
super
_ method (20) - superclass (11)
- swapcase! (11)
- sync (11)
- sysseek (11)
- syswrite (11)
-
take
_ while (66) - tap (11)
- tell (22)
- termsig (11)
- then (12)
-
thread
_ variable _ get (11) - times (22)
-
to
_ enum (44) -
to
_ h (57) -
to
_ i (19) -
to
_ path (24) -
to
_ proc (5) -
to
_ s (33) - tr! (11)
-
tr
_ s! (11) - transfer (3)
-
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - truncate (34)
- uniq (60)
- uniq! (22)
- unpack (11)
- upcase! (11)
- update (22)
- upto (33)
- value (11)
-
with
_ index (32) -
with
_ object (22) -
world
_ readable? (11) -
world
_ writable? (11) - write (11)
-
write
_ nonblock (11) - yield (22)
-
yield
_ self (14) - zip (55)
- ~ (17)
検索結果
先頭5件
-
Enumerable
# flat _ map {| obj | block } -> Array (8217.0) -
各要素をブロックに渡し、その返り値を連結した配列を返します。
...ックに渡し、その返り値を連結した配列を返します。
ブロックの返り値は基本的に配列を返すべきです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[[1,2], [3,4]].flat_map{|i| i.map{|j| j*2}} # => [2,4,6,8]
//}... -
Bignum
# %(other) -> Fixnum | Bignum | Float (8207.0) -
算術演算子。剰余を計算します。
算術演算子。剰余を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Bignum
# / (other) -> Fixnum | Bignum | Float (8207.0) -
算術演算子。商を計算します。
算術演算子。商を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Bignum
# div(other) -> Fixnum | Bignum | Float (8207.0) -
算術演算子。商を計算します。
算術演算子。商を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Bignum
# modulo(other) -> Fixnum | Bignum | Float (8207.0) -
算術演算子。剰余を計算します。
算術演算子。剰余を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Fixnum
# %(other) -> Fixnum | Bignum | Float (8207.0) -
算術演算子。剰余を計算します。
算術演算子。剰余を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Fixnum
# / (other) -> Fixnum | Bignum | Float (8207.0) -
算術演算子。商を計算します。
算術演算子。商を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Fixnum
# div(other) -> Fixnum | Bignum | Float (8207.0) -
算術演算子。商を計算します。
算術演算子。商を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Fixnum
# modulo(other) -> Fixnum | Bignum | Float (8207.0) -
算術演算子。剰余を計算します。
算術演算子。剰余を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
ARGF
. class # read _ nonblock(maxlen , outbuf = nil , exception: true) -> String | Symbol | nil (8205.0) -
処理中のファイルからノンブロッキングモードで最大 maxlen バイト読み込みます。 詳しくは IO#read_nonblock を参照してください。
処理中のファイルからノンブロッキングモードで最大 maxlen バイト読み込みます。
詳しくは IO#read_nonblock を参照してください。
ARGF.class#read などとは違って複数ファイルを同時に読み込むことはありません。
@param maxlen 読み込む長さの上限を整数で指定します。
@param outbuf 読み込んだデータを格納する String オブジェクトを指定します。
@param exception 読み込み時に Errno::EAGAIN、
Errno::EWOULDBLOCK が発生する代わりに
... -
Bignum
# *(other) -> Fixnum | Bignum | Float (8205.0) -
算術演算子。積を計算します。
算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Bignum
# **(other) -> Fixnum | Bignum | Float (8205.0) -
算術演算子。冪(べき乗)を計算します。
算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1 -
Bignum
# +(other) -> Fixnum | Bignum | Float (8205.0) -
算術演算子。和を計算します。
算術演算子。和を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Bignum
# -(other) -> Fixnum | Bignum | Float (8205.0) -
算術演算子。差を計算します。
算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Bignum
# remainder(other) -> Fixnum | Bignum | Float (8205.0) -
self を other で割った余り r を返します。
self を other で割った余り r を返します。
r の符号は self と同じになります。
@param other self を割る数。
@see Bignum#divmod, Bignum#modulo, Numeric#modulo -
Enumerator
# size -> Integer | Float :: INFINITY | nil (8205.0) -
self の要素数を返します。
self の要素数を返します。
要素数が無限の場合は Float::INFINITY を返します。
Enumerator.new に Proc オブジェクトを指定していた場合はその
実行結果を返します。呼び出した時に要素数が不明であった場合は nil を返し
ます。
//emlist[例][ruby]{
(1..100).to_a.permutation(4).size # => 94109400
loop.size # => Float::INFINITY
(1..100).drop_while.size # => nil
//}
@see Enumerator.new -
Enumerator
:: Chain # size -> Integer | Float :: INFINITY | nil (8205.0) -
合計の要素数を返します。
合計の要素数を返します。
それぞれの列挙可能なオブジェクトのサイズの合計値を返します。
ただし、列挙可能なオブジェクトが1つでも nil か Float::INFINITY
を返した場合、それを合計の要素数として返します。 -
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (8205.0) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
バックトレース情報に errinfo を設定し、設定されたバックトレース
情報を返します。
@param errinfo nil、String あるいは String の配列のいずれかを指定します。
//emlist[例][ruby]{
begin
begin
raise "inner"
rescue
raise "outer"
end
rescue
$!.backtrace # => ["/path/to/test.rb:5:in `rescue in <main>'", "/path/to/test.rb:2:in `<main>'"]
$!.se... -
Fixnum
# *(other) -> Fixnum | Bignum | Float (8205.0) -
算術演算子。積を計算します。
算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Fixnum
# **(other) -> Fixnum | Bignum | Float (8205.0) -
算術演算子。冪(べき乗)を計算します。
算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1 -
Fixnum
# +(other) -> Fixnum | Bignum | Float (8205.0) -
算術演算子。和を計算します。
算術演算子。和を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Fixnum
# -(other) -> Fixnum | Bignum | Float (8205.0) -
算術演算子。差を計算します。
算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果 -
Float
# infinite? -> 1 | -1 | nil (8205.0) -
数値が +∞ のとき 1、-∞のとき -1 を返します。それ以外は nil を返 します。
数値が +∞ のとき 1、-∞のとき -1 を返します。それ以外は nil を返
します。
//emlist[例][ruby]{
inf = 1.0/0
p inf # => Infinity
p inf.infinite? # => 1
inf = -1.0/0
p inf # => -Infinity
p inf.infinite? # => -1
//}