ライブラリ
- ビルトイン (7592)
クラス
-
ARGF
. class (304) - Array (1385)
- BasicObject (33)
- Bignum (48)
- Class (3)
- Complex (13)
- Dir (116)
- Enumerator (77)
-
Enumerator
:: ArithmeticSequence (53) -
Enumerator
:: Lazy (255) - Exception (22)
- FalseClass (11)
- Fiber (3)
- File (102)
-
File
:: Stat (11) - Fixnum (42)
- Float (51)
- Hash (585)
- IO (604)
- Integer (125)
- MatchData (92)
- Method (21)
- Module (258)
- NilClass (11)
- Numeric (173)
- Object (110)
-
ObjectSpace
:: WeakMap (11) - Proc (89)
- Random (33)
- Range (170)
- Rational (132)
- Regexp (44)
-
RubyVM
:: InstructionSequence (11) - String (966)
- Struct (43)
- Symbol (173)
- Thread (106)
-
Thread
:: Backtrace :: Location (44) -
Thread
:: Queue (27) -
Thread
:: SizedQueue (36) - Time (11)
- TracePoint (106)
- TrueClass (11)
- UnboundMethod (21)
モジュール
- Enumerable (1050)
キーワード
- % (18)
- & (6)
- * (17)
- ** (17)
- + (17)
- +@ (9)
- - (17)
- -@ (9)
-
/ (17) - < (11)
- << (12)
- <= (11)
- <=> (118)
- == (22)
- === (11)
- =~ (33)
- > (11)
- >= (11)
- >> (12)
- [] (263)
- ^ (6)
-
absolute
_ path (22) -
add
_ trace _ func (11) - advise (11)
- all? (39)
- angle (11)
- any? (56)
-
append
_ features (11) - arg (11)
- assoc (22)
- at (11)
- atime (11)
- autoclose? (11)
- autoload? (11)
-
backtrace
_ locations (22) -
base
_ label (11) - begin (16)
- binmode (11)
- bsearch (44)
-
bsearch
_ index (18) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (36)
- byteslice (33)
- call (11)
-
callee
_ id (11) - capitalize! (11)
- casecmp (22)
- casecmp? (16)
- ceil (23)
- chars (36)
- children (6)
- chomp! (11)
- chop! (11)
- chown (11)
- chr (11)
- chunk (33)
-
chunk
_ while (19) -
class
_ eval (22) -
class
_ exec (11) - clone (11)
- close (9)
-
close
_ read (11) -
close
_ write (11) - codepoints (36)
- collect (55)
- collect! (22)
-
collect
_ concat (11) - combination (22)
- compact (8)
- compact! (8)
- 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 (33) - dup (11)
- each (254)
-
each
_ byte (66) -
each
_ char (66) -
each
_ child (12) -
each
_ codepoint (22) -
each
_ cons (22) -
each
_ entry (22) -
each
_ grapheme _ cluster (14) -
each
_ index (22) -
each
_ key (22) -
each
_ line (132) -
each
_ pair (22) -
each
_ slice (22) -
each
_ value (22) -
each
_ with _ index (22) -
each
_ with _ object (22) - encode (33)
- end (17)
-
enum
_ for (22) - eof (11)
- eof? (11)
-
eval
_ script (6) - event (11)
-
extend
_ object (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 (11) - flatten (11)
- flatten! (11)
- flock (11)
- floor (24)
- flush (11)
- getbyte (22)
- getc (22)
- gets (66)
-
grapheme
_ clusters (14) - grep (33)
-
grep
_ v (31) - gsub (44)
- gsub! (44)
- index (44)
- infinite? (8)
- inject (33)
-
inplace
_ mode (11) -
inplace
_ mode= (11) - inspect (22)
-
instance
_ eval (22) -
instance
_ exec (11) -
instance
_ method (11) -
instance
_ variable _ get (11) -
instruction
_ sequence (6) -
internal
_ encoding (11) - invert (11)
- join (22)
-
keep
_ if (44) - last (34)
- lazy (11)
- lineno (11)
- lines (106)
- lstat (11)
- map (55)
- map! (22)
- match (55)
- max (118)
-
max
_ by (44) - merge (22)
- merge! (22)
-
method
_ id (11) - min (118)
-
min
_ by (44) - minmax (32)
-
minmax
_ by (22) -
module
_ eval (22) -
module
_ exec (11) -
module
_ function (12) - modulo (6)
- mtime (11)
- name (11)
- none? (39)
- nonzero? (11)
- offset (22)
- one? (39)
- pack (19)
- parameters (6)
- path (18)
- permutation (22)
- phase (11)
- 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 (24) - 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
_ trace _ func (11) - shift (51)
- size (28)
- slice (154)
- slice! (33)
-
slice
_ after (42) -
slice
_ before (55) -
slice
_ when (21) - sort (44)
- sort! (22)
-
sort
_ by (22) -
sort
_ by! (22) -
source
_ location (33) - split (12)
- squeeze! (11)
- stat (11)
- status (11)
- step (112)
- strip! (11)
- sub (33)
- sub! (33)
- sum (49)
-
super
_ method (20) - superclass (3)
- swapcase! (11)
- sync (11)
- sysseek (11)
- syswrite (11)
-
take
_ while (66) - tap (7)
- tell (22)
- then (12)
-
thread
_ variable _ get (11) - times (22)
-
to
_ enum (22) -
to
_ h (24) -
to
_ i (19) -
to
_ path (7) -
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 (22)
- unpack (11)
- upcase! (11)
- update (22)
- upto (33)
-
with
_ index (10) -
with
_ object (22) - write (11)
-
write
_ nonblock (11) - yield (11)
-
yield
_ self (14) - zip (55)
検索結果
先頭5件
-
FalseClass
# |(other) -> bool (26149.0) -
other が真なら true を, 偽なら false を返します。
...す。
@param other 論理和を行なう式です。
| は再定義可能な演算子に分類されていますので、通常は false | other の形で使われます。
//emlist[例][ruby]{
p false | true #=> true
p false | false #=> false
p false | nil #=> false
p false | (1 ==......1) #=> true
p false | (1 + 1) #=> true
p false.|(true) #=> true
p false.|(false) #=> false
p false.|(nil) #=> false
p false.|(1 == 1) #=> true
p false.|(1 + 1) #=> true
//}... -
TrueClass
# |(other) -> bool (26149.0) -
常に true を返します。
...ます。
@param other 論理和を行なう式です。
| は再定義可能な演算子に分類されていますので、通常は true | other のように使われます。
//emlist[例][ruby]{
p true | true #=> true
p true | false #=> true
p true | nil #=> true
p true | (1 == 1......) #=> true
p true | (1 + 1) #=> true
p true.|(true) #=> true
p true.|(false) #=> true
p true.|(nil) #=> true
p true.|(1 == 1) #=> true
p true.|(1 + 1) #=> true
//}... -
Array
# |(other) -> Array (26131.0) -
集合の和演算です。両方の配列にいずれかに含まれる要素を全て含む新し い配列を返します。重複する要素は取り除かれます。
...は self における要素の順と同じです。
@param other 配列を指定します。
配列以外のオブジェクトを指定した場合は to_ary メソッドによ
る暗黙の型変換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型......変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 1, 4, 2, 3] | [5, 4, 5] #=> [1, 4, 2, 3, 5]
//}
@see Array#&
@see Array#union... -
NilClass
# |(other) -> bool (26131.0) -
other が真なら true を, 偽なら false を返します。
...other が真なら true を, 偽なら false を返します。
@param other 論理和を行なう式です
//emlist[例][ruby]{
nil | true # => true
nil | false # => false
nil | nil # => false
nil | "a" # => true
//}... -
Array
# |(other) -> Array (26125.0) -
集合の和演算です。両方の配列にいずれかに含まれる要素を全て含む新し い配列を返します。重複する要素は取り除かれます。
...は self における要素の順と同じです。
@param other 配列を指定します。
配列以外のオブジェクトを指定した場合は to_ary メソッドによ
る暗黙の型変換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型......変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 1, 4, 2, 3] | [5, 4, 5] #=> [1, 4, 2, 3, 5]
//}
@see Array#&... -
Bignum
# |(other) -> Fixnum | Bignum (26120.0) -
ビット二項演算子。論理和を計算します。
...ビット二項演算子。論理和を計算します。
@param other 数値
1 | 1 #=> 1
2 | 3 #=> 3... -
Fixnum
# |(other) -> Fixnum | Bignum (26120.0) -
ビット二項演算子。論理和を計算します。
...ビット二項演算子。論理和を計算します。
@param other 数値
1 | 1 #=> 1
2 | 3 #=> 3... -
Integer
# |(other) -> Integer (26119.0) -
ビット二項演算子。論理和を計算します。
...ビット二項演算子。論理和を計算します。
@param other 数値
//emlist[][ruby]{
1 | 1 # => 1
2 | 3 # => 3
//}... -
String
# -@ -> String | self (14209.0) -
self が freeze されている文字列の場合、self を返します。 freeze されていない場合は元の文字列の freeze された (できる限り既存の) 複製を返します。
...t == frozen_text # => true
original_text.equal?(frozen_text) # => false
original_text = "text".freeze
frozen_text = -original_text
frozen_text.frozen? # => true
original_text == frozen_text # => true
original_text.equal?(frozen_text) # => true
//}
@see String#+@... -
String
# +@ -> String | self (14208.0) -
self が freeze されている文字列の場合、元の文字列の複製を返します。 freeze されていない場合は self を返します。
..._text # => true
original_text.equal?(unfrozen_text) # => true
original_text = "text".freeze
unfrozen_text = +original_text
unfrozen_text.frozen? # => false
original_text == unfrozen_text # => true
original_text.equal?(unfrozen_text) # => false
//}
@see String#-@... -
String
# -@ -> String | self (14208.0) -
self が freeze されている文字列の場合、self を返します。 freeze されていない場合は元の文字列の freeze された (できる限り既存の) 複製を返します。
...t == frozen_text # => true
original_text.equal?(frozen_text) # => false
original_text = "text".freeze
frozen_text = -original_text
frozen_text.frozen? # => true
original_text == frozen_text # => true
original_text.equal?(frozen_text) # => true
//}
@see String#+@... -
String
# dedup -> String | self (11109.0) -
self が freeze されている文字列の場合、self を返します。 freeze されていない場合は元の文字列の freeze された (できる限り既存の) 複製を返します。
...t == frozen_text # => true
original_text.equal?(frozen_text) # => false
original_text = "text".freeze
frozen_text = -original_text
frozen_text.frozen? # => true
original_text == frozen_text # => true
original_text.equal?(frozen_text) # => true
//}
@see String#+@... -
Integer
# <=>(other) -> -1 | 0 | 1 | nil (8316.0) -
self と other を比較して、self が大きい時に1、等しい時に 0、小さい時 に-1、比較できない時に nil を返します。
...比較して、self が大きい時に1、等しい時に 0、小さい時
に-1、比較できない時に nil を返します。
@param other 比較対象の数値
@return -1 か 0 か 1 か nil のいずれか
//emlist[][ruby]{
1 <=> 2 # => -1
1 <=> 1 # => 0
2 <=> 1 # => 1
2 <=> '' # =>... -
Rational
# <=>(other) -> -1 | 0 | 1 | nil (8316.0) -
self と other を比較して、self が大きい時に 1、等しい時に 0、小さい時に -1 を返します。比較できない場合はnilを返します。
...が大きい時に 1、等しい時に 0、小さい時に
-1 を返します。比較できない場合はnilを返します。
@param other 自身と比較する数値
@return -1 か 0 か 1 か nil を返します。
//emlist[例][ruby]{
Rational(2, 3) <=> Rational(2, 3) # => 0
Rational...