種類
- インスタンスメソッド (3000)
- 特異メソッド (355)
- クラス (62)
- モジュール関数 (60)
ライブラリ
クラス
-
ARGF
. class (126) - Addrinfo (12)
- Array (324)
- CSV (12)
- Complex (24)
- Date (36)
- Dir (59)
- Enumerator (212)
-
Enumerator
:: ArithmeticSequence (98) -
Enumerator
:: Chain (42) -
Enumerator
:: Lazy (429) -
Enumerator
:: Yielder (30) -
Etc
:: Group (12) -
Etc
:: Passwd (12) - Float (24)
-
Gem
:: SourceIndex (12) - Hash (168)
- IO (162)
- Integer (72)
- Matrix (94)
- Numeric (81)
- Object (63)
- OpenStruct (12)
- Pathname (63)
- Prime (24)
-
Prime
:: PseudoPrimeGenerator (36) -
Psych
:: Nodes :: Node (12) -
REXML
:: Parent (48) - Range (59)
- Rational (24)
- String (80)
- StringIO (88)
- Struct (43)
- Vector (74)
-
Zlib
:: GzipReader (36)
モジュール
- Enumerable (440)
- Find (12)
- Kernel (24)
- ObjectSpace (24)
- TSort (66)
オブジェクト
- ENV (134)
-
Readline
:: HISTORY (12)
キーワード
- % (14)
- + (7)
- << (12)
- == (7)
- ArithmeticSequence (7)
- Chain (7)
- Enumerator (12)
- Lazy (12)
- Numeric (12)
- Yielder (12)
- ascend (12)
- begin (7)
- bsearch (24)
-
bsearch
_ index (10) - bytes (21)
- chain (7)
- chars (21)
- chunk (36)
-
chunk
_ while (21) - codepoints (21)
- collect (60)
- collect! (26)
- collect2 (12)
-
collect
_ concat (24) - combination (12)
- combine (8)
- compact (4)
- cycle (24)
-
delete
_ if (48) - denominator (60)
- descend (12)
- detect (12)
- downto (24)
- drop (12)
-
drop
_ while (36) - each (352)
- each2 (12)
-
each
_ byte (60) -
each
_ char (48) -
each
_ child (47) -
each
_ codepoint (48) -
each
_ cons (12) -
each
_ entry (15) -
each
_ grapheme _ cluster (8) -
each
_ index (24) -
each
_ key (24) -
each
_ line (108) -
each
_ object (24) -
each
_ pair (48) -
each
_ prime (12) -
each
_ slice (12) -
each
_ strongly _ connected _ component (22) -
each
_ strongly _ connected _ component _ from (22) -
each
_ value (24) -
each
_ with _ index (36) -
each
_ with _ object (12) - eager (6)
- end (7)
-
enum
_ for (48) -
exclude
_ end? (7) - feed (12)
- filter (42)
- filter! (21)
-
filter
_ map (12) - find (36)
-
find
_ all (24) -
find
_ index (36) - first (14)
-
flat
_ map (24) - force (12)
- foreach (60)
- grep (12)
-
grep
_ v (10) -
group
_ by (12) - gsub (24)
- gsub! (12)
- hash (7)
- index (24)
- inspect (14)
-
keep
_ if (36) - last (14)
- lazy (24)
- lines (49)
- loop (12)
- map (60)
- map! (26)
-
max
_ by (24) -
min
_ by (24) -
minmax
_ by (12) - new (38)
- next (12)
-
next
_ values (12) - partition (12)
- peek (12)
-
peek
_ values (12) - permutation (12)
- produce (6)
- reject (60)
- reject! (36)
-
repeated
_ combination (12) -
repeated
_ permutation (12) -
reverse
_ each (26) - rewind (19)
- rindex (12)
- select (72)
- select! (36)
- size (26)
-
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) -
sort
_ by (12) -
sort
_ by! (12) - step (95)
- take (12)
-
take
_ while (48) - then (7)
- times (12)
-
to
_ enum (48) -
to
_ proc (6) -
transform
_ keys (8) -
transform
_ keys! (8) -
transform
_ values (9) -
transform
_ values! (9) -
tsort
_ each (22) - uniq (18)
- upto (24)
-
with
_ index (48) -
with
_ object (36) - yield (12)
-
yield
_ self (8) - zip (24)
検索結果
先頭5件
-
Zlib
:: GzipReader # each _ line(rs = $ / ) -> Enumerator (100.0) -
IO クラスの同名メソッドIO#each, IO#each_lineと同じです。
IO クラスの同名メソッドIO#each, IO#each_lineと同じです。
但し、gzip ファイル中に
エラーがあった場合 Zlib::Error 例外や
Zlib::GzipFile::Error 例外が発生します。
gzip ファイルのフッターの処理に注意して下さい。
gzip ファイルのフッターには圧縮前データのチェックサムが
記録されています。GzipReader オブジェクトは、次の時に展開した
データとフッターの照合を行い、エラーがあった場合は
Zlib::GzipFile::NoFooter, Zlib::GzipFile::CRCError,
Zlib::Gzip... -
Complex
# denominator -> Integer (18.0) -
分母を返します。
...と虚部の分母の最小公倍数を整数で返します。
1 2 3+4i <- numerator(分子)
- + -i -> ----
2 3 6 <- denominator(分母)
//emlist[例][ruby]{
Complex('1/2+2/3i').denominator # => 6
Complex(3).numerator # => 1
//}
@see Complex#numerator... -
Float
# denominator -> Integer (6.0) -
自身を Rational に変換した時の分母を返します。
...自身を Rational に変換した時の分母を返します。
@return 分母を返します。
//emlist[例][ruby]{
2.0.denominator # => 1
0.5.denominator # => 2
//}
@see Float#numerator... -
Integer
# denominator -> Integer (6.0) -
分母(常に1)を返します。
...分母(常に1)を返します。
@return 分母を返します。
//emlist[][ruby]{
10.denominator # => 1
-10.denominator # => 1
//}
@see Integer#numerator... -
Numeric (6.0)
-
数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。
...- - - -
nonzero? | o - - - - - -
numerator | o o - - o o o
odd? | - o o......t_float | - - o - -
nonzero? | o - - - -
numerator | o o o o o
odd? | - o - - -... -
Numeric
# denominator -> Integer (6.0) -
自身を Rational に変換した時の分母を返します。
...自身を Rational に変換した時の分母を返します。
@return 分母を返します。
@see Numeric#numerator、Integer#denominator、Float#denominator、Rational#denominator、Complex#denominator... -
Rational
# denominator -> Integer (6.0) -
分母を返します。常に正の整数を返します。
...分母を返します。常に正の整数を返します。
@return 分母を返します。
//emlist[例][ruby]{
Rational(7).denominator # => 1
Rational(7, 1).denominator # => 1
Rational(9, -4).denominator # => 4
Rational(-2, -10).denominator # => 5
//}
@see Rational#numerator...