クラス
-
ARGF
. class (144) - Array (1345)
- BasicObject (36)
- Complex (15)
- Data (6)
- Dir (128)
-
Encoding
:: Converter (12) - Enumerator (108)
-
Enumerator
:: Lazy (326) -
Enumerator
:: Yielder (30) - Exception (36)
- FalseClass (12)
- Fiber (4)
- File (108)
-
File
:: Stat (120) - Float (117)
- Hash (574)
- IO (400)
- Integer (136)
- MatchData (106)
- Method (35)
- Module (312)
- NilClass (12)
- Numeric (178)
- Object (126)
- Proc (36)
- Random (36)
- Range (213)
- Rational (144)
- Regexp (84)
-
RubyVM
:: InstructionSequence (12) - Set (48)
- String (1060)
- Struct (110)
- Symbol (33)
- Thread (80)
-
Thread
:: Backtrace :: Location (48) -
Thread
:: Queue (70) -
Thread
:: SizedQueue (40) - Time (24)
- TracePoint (141)
- TrueClass (12)
- UnboundMethod (24)
モジュール
- Enumerable (1206)
キーワード
- % (14)
- * (12)
- ** (12)
- + (12)
- +@ (10)
- - (12)
- -@ (10)
-
/ (12) - < (12)
- << (15)
- <= (12)
- <=> (138)
- == (12)
- =~ (24)
- > (12)
- >= (12)
- [] (192)
-
absolute
_ path (24) - add (3)
- add? (3)
-
add
_ trace _ func (12) - advise (12)
- all? (49)
- angle (24)
- any? (39)
-
append
_ features (12) - arg (24)
- arity (12)
- at (12)
- atime (12)
- autoclose? (12)
- autoload? (12)
- backtrace (12)
-
backtrace
_ locations (24) -
base
_ label (12) - begin (12)
- binding (12)
- blockdev? (12)
- bsearch (48)
-
bsearch
_ index (20) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (24)
- byteslice (36)
-
callee
_ id (12) - capitalize! (12)
- casecmp (24)
- casecmp? (18)
- cause (12)
- ceil (25)
- chardev? (12)
- chars (24)
- children (7)
- chomp! (12)
- chop! (12)
- chr (12)
- chunk (36)
-
chunk
_ while (12) -
class
_ eval (24) -
class
_ exec (12) - classify (3)
- clear (10)
- close (10)
-
close
_ write (12) - closed? (10)
- codepoints (24)
- collect (60)
- collect! (27)
-
collect
_ concat (36) - combination (24)
- compact (21)
- compact! (21)
- count (72)
- ctime (12)
- curry (12)
- cycle (36)
- dedup (3)
- default (24)
-
default
_ proc (12) -
default
_ proc= (12) -
defined
_ class (12) - delete (51)
- delete! (12)
- delete? (3)
-
delete
_ at (12) -
delete
_ if (51) -
delete
_ prefix! (8) -
delete
_ suffix! (8) - deq (20)
- detect (24)
- dig (30)
- divide (6)
- downcase! (12)
- downto (24)
-
drop
_ while (60) - each (219)
-
each
_ byte (48) -
each
_ char (36) -
each
_ child (14) -
each
_ codepoint (72) -
each
_ cons (24) -
each
_ entry (24) -
each
_ grapheme _ cluster (16) -
each
_ index (12) -
each
_ key (12) -
each
_ line (84) -
each
_ pair (36) -
each
_ slice (24) -
each
_ value (12) -
each
_ with _ index (24) -
each
_ with _ object (24) - eager (6)
- encode (36)
- end (12)
-
enum
_ for (48) -
eval
_ script (7) - event (12)
-
extend
_ object (12) -
external
_ encoding (12) - fcntl (12)
- fdatasync (12)
- fdiv (12)
- fetch (80)
-
fetch
_ values (22) - fileno (11)
- fill (24)
- filter (63)
- filter! (28)
-
filter
_ map (18) - find (24)
-
find
_ all (36) -
find
_ index (72) - first (48)
-
flat
_ map (36) - flatten (15)
- flatten! (15)
- flock (12)
- floor (26)
- getbyte (24)
- getc (12)
- gets (36)
-
grapheme
_ clusters (16) - grep (36)
-
grep
_ v (34) -
group
_ by (12) - gsub (48)
- gsub! (48)
- index (48)
- infinite? (21)
- inject (36)
-
inplace
_ mode (12) -
inplace
_ mode= (12) - inspect (48)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ variable _ get (12) -
instruction
_ sequence (7) -
internal
_ encoding (24) - invert (12)
-
keep
_ if (43) - last (24)
-
last
_ error (12) - lazy (12)
- length (10)
- lineno (12)
- lines (24)
- lstat (12)
- lstrip! (12)
- map (60)
- map! (27)
- match (48)
- max (88)
-
max
_ by (48) - merge (24)
- merge! (24)
-
method
_ id (12) - min (88)
-
min
_ by (48) - minmax (48)
-
minmax
_ by (24) -
module
_ eval (24) -
module
_ exec (12) -
module
_ function (36) - mtime (12)
- name (12)
- none? (15)
- offset (24)
- one? (45)
- owner (24)
- pack (21)
- parameters (7)
- partition (24)
- path (39)
- permutation (24)
- phase (24)
- pid (12)
- pop (32)
- pos (24)
- pread (8)
- private (48)
- product (24)
- public (12)
- pwrite (8)
- quo (24)
-
raised
_ exception (12) - rand (36)
- read (24)
- readbyte (12)
- readlines (36)
- reduce (36)
- reject (84)
- reject! (51)
- remainder (12)
-
repeated
_ combination (24) -
repeated
_ permutation (24) -
respond
_ to? (12) -
return
_ value (12) -
reverse
_ each (52) - rindex (48)
- round (37)
- rstrip! (12)
- sample (24)
- scan (24)
- scrub (36)
- scrub! (36)
- select (108)
- select! (48)
-
set
_ backtrace (12) -
set
_ encoding _ by _ bom (6) -
set
_ trace _ func (12) - setgid? (12)
- setuid? (12)
- shift (56)
- size (46)
- size? (12)
- slice (84)
- slice! (24)
-
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - socket? (12)
- sort (48)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) - source (12)
-
source
_ location (36) - split (14)
- squeeze! (12)
- stat (12)
- step (124)
- sticky? (12)
- strip! (12)
- sub (36)
- sub! (36)
- subsec (12)
- sum (54)
-
super
_ method (11) - swapcase! (12)
- syswrite (12)
-
take
_ while (72) - tap (12)
- tell (24)
- then (14)
- times (24)
-
to
_ enum (48) -
to
_ h (67) -
to
_ i (21) -
to
_ path (27) -
to
_ proc (6) -
to
_ s (36) -
to
_ set (6) -
tr
_ s! (12) - transfer (4)
-
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - truncate (37)
- uniq (24)
- uniq! (12)
- unpack (12)
- upcase! (12)
- update (24)
- upto (36)
-
with
_ index (36) -
with
_ object (24) -
world
_ readable? (12) -
world
_ writable? (12) - write (12)
- yield (12)
-
yield
_ self (16) - zip (60)
- ~ (12)
検索結果
先頭5件
-
TrueClass
# |(other) -> bool (21251.0) -
常に true を返します。
...に true を返します。
@param other 論理和を行なう式です。
| は再定義可能な演算子に分類されていますので、通常は true | other のように使われます。
//emlist[例][ruby]{
p true | true #=> true
p true | false #=> true
p true | nil #=> tru......e
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
//}... -
Integer
# |(other) -> Integer (21221.0) -
ビット二項演算子。論理和を計算します。
...ビット二項演算子。論理和を計算します。
@param other 数値
//emlist[][ruby]{
1 | 1 # => 1
2 | 3 # => 3
//}... -
FalseClass
# |(other) -> bool (18251.0) -
other が真なら true を, 偽なら false を返します。
...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
//}... -
NilClass
# |(other) -> bool (18233.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 (18215.0) -
集合の和演算です。両方の配列にいずれかに含まれる要素を全て含む新し い配列を返します。重複する要素は取り除かれます。
...複判定は、Object#eql? と Object#hash により行われます。
新しい配列における要素の順は self における要素の順と同じです。
@param other 配列を指定します。
配列以外のオブジェクトを指定した場合は to_ary メソッドに......る暗黙の型変換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 1, 4, 2, 3] | [5, 4, 5] #=> [1, 4, 2, 3, 5]
//}
@see Array#&......る暗黙の型変換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 1, 4, 2, 3] | [5, 4, 5] #=> [1, 4, 2, 3, 5]
//}
@see Array#&
@see A... -
Set
# |(enum) -> Set (18209.0) -
和集合、すなわち、2 つの集合の少なくともどちらか一方に属するすべての 要素からなる新しい集合を作ります。
...。
@param enum each メソッドが定義されたオブジェクトを指定します。
@raise ArgumentError 引数 enum に each メソッドが定義されていない場合に
発生します。
//emlist[][ruby]{
p Set[10, 20, 30] + Set[10, 20, 40]
# => #<Set: {10, 20, 30, 40}>
//}... -
Enumerable
# partition {|item| . . . } -> [[object] , [object]] (12316.0) -
各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。 各要素に対してブロックを評価して、その値が真であった要素の配列と、 偽であった要素の配列の 2 つを配列に入れて返します。
...要素の配列と、
偽であった要素の配列の 2 つを配列に入れて返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0].partition {|i| i % 3 == 0 }
#=> [[9, 6, 3, 0], [10, 8, 7, 5, 4, 2, 1]]
//}... -
Enumerable
# partition -> Enumerator (12216.0) -
各要素を、ブロックの条件を満たす要素と満たさない要素に分割します。 各要素に対してブロックを評価して、その値が真であった要素の配列と、 偽であった要素の配列の 2 つを配列に入れて返します。
...要素の配列と、
偽であった要素の配列の 2 つを配列に入れて返します。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0].partition {|i| i % 3 == 0 }
#=> [[9, 6, 3, 0], [10, 8, 7, 5, 4, 2, 1]]
//}... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (9321.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...pt_compiledイベント発生時にコンパイルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("put......s 'hello'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。... -
Method
# super _ method -> Method | nil (9310.0) -
self 内で super を実行した際に実行されるメソッドを Method オブジェ クトにして返します。
...Method オブジェ
クトにして返します。
@see UnboundMethod#super_method
//emlist[例][ruby]{
class Super
def foo
"superclass method"
end
end
class Sub < Super
def foo
"subclass method"
end
end
m = Sub.new.method(:foo) # => #<Method: Sub#foo>
m.call # => "subclass metho......d"
m.super_method # => #<Method: Super#foo>
m.super_method.call # => "superclass method"
//}...