2295件ヒット
[1-100件を表示]
(0.078秒)
別のキーワード
クラス
-
ARGF
. class (44) - Array (294)
- BasicObject (66)
- Bignum (6)
- Class (11)
- Complex (22)
- Data (2)
-
Encoding
:: Converter (44) - Enumerator (55)
-
Enumerator
:: Lazy (54) - Exception (11)
- Fiber (14)
- File (11)
- Fixnum (6)
- Float (49)
- Hash (89)
- IO (128)
- Integer (55)
- MatchData (11)
- Method (63)
- Module (240)
- Numeric (55)
- Object (172)
- Proc (89)
- Range (22)
- Rational (33)
- Regexp (22)
- String (267)
- Struct (11)
- Symbol (42)
- Time (22)
- UnboundMethod (10)
モジュール
- Enumerable (275)
キーワード
- ! (11)
- % (22)
- ** (50)
- + (11)
- << (12)
- === (29)
- >> (12)
- [] (22)
-
_ _ id _ _ (11) -
_ _ send _ _ (22) - advise (11)
-
alias
_ method (11) - append (7)
- attr (11)
-
attr
_ accessor (11) -
attr
_ reader (11) -
attr
_ writer (11) - backtrace (11)
-
bind
_ call (10) - binmode (11)
- bsearch (44)
- call (33)
- capitalize (16)
- capitalize! (8)
- chain (6)
- chunk (11)
-
class
_ exec (11) - collect (44)
- collect! (22)
-
collect
_ concat (11) - concat (16)
- convert (11)
- count (11)
- crypt (11)
- curry (22)
- delete (11)
- delete! (11)
-
deprecate
_ constant (9) - difference (6)
- div (11)
- divmod (22)
- downcase (16)
- downcase! (8)
- each (44)
-
each
_ with _ index (22) -
each
_ with _ object (22) - encode (33)
-
end
_ with? (16) - entries (11)
-
enum
_ for (22) - except (3)
- extend (11)
-
filter
_ map (15) -
flat
_ map (11) - flock (11)
-
grep
_ v (22) - include (11)
- initialize (11)
- insert (11)
-
instance
_ exec (11) - intersection (5)
- lazy (11)
- map (44)
- map! (22)
- match (22)
-
max
_ by (44) - merge (12)
- merge! (12)
-
method
_ missing (11) -
module
_ exec (11) -
module
_ function (11) - modulo (11)
- new (11)
- pack (19)
- parameters (22)
- pow (22)
- prepend (26)
-
primitive
_ convert (44) - print (22)
- printf (22)
- private (11)
-
private
_ class _ method (11) -
private
_ constant (11) - product (22)
- protected (11)
- public (11)
-
public
_ class _ method (11) -
public
_ constant (11) -
public
_ send (22) - push (11)
- puts (22)
- read (11)
- readpartial (11)
- refine (11)
- remainder (11)
-
remove
_ method (11) -
respond
_ to _ missing? (11) - resume (11)
- round (27)
- seek (11)
- send (22)
-
set
_ encoding (22) - slice (7)
- squeeze (11)
- squeeze! (11)
-
start
_ with? (16) - strftime (11)
- sum (38)
- swapcase (16)
- swapcase! (8)
- sysread (11)
- sysseek (11)
- tap (7)
-
to
_ a (11) -
to
_ ary (11) -
to
_ c (11) -
to
_ enum (22) -
to
_ f (11) -
to
_ h (17) -
to
_ int (11) -
to
_ r (11) -
to
_ str (11) - transfer (3)
-
transform
_ values (16) -
transform
_ values! (16) -
undef
_ method (11) - union (6)
- unpack (11)
- unshift (11)
- upcase (16)
- upcase! (8)
- update (12)
- using (11)
-
values
_ at (44) - with (2)
-
with
_ index (5) -
with
_ object (11) - write (7)
- yield (11)
- zip (66)
検索結果
先頭5件
-
String
# *(times) -> String (18139.0) -
文字列の内容を times 回だけ繰り返した新しい文字列を作成して返します。
...ます。
@param times 整数
@return self を times 回繰り返した新しい文字列
@raise ArgumentError 引数に負数を指定したときに発生します。
//emlist[例][ruby]{
p "str" * 3 # => "strstrstr"
str = "abc"
p str * 4 # => "abcabcabcabc"
p str * 0 # => ""... -
Rational
# *(other) -> Rational | Float (18133.0) -
積を計算します。
...計算します。
@param other 自身に掛ける数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r * 2 # => (3/2)
r * 4 # => (3/1)
r * 0.5 # => 0.375
r * Rational(1, 2) #... -
Array
# *(times) -> Array (18130.0) -
配列の内容を times 回 繰り返した新しい配列を作成して返します。 値はコピーされないことに注意してください。
...いことに注意してください。
@param times 繰り返したい回数を整数で指定します。
整数以外のオブジェクトを指定した場合は to_int メソッドによ
る暗黙の型変換を試みます。
@raise TypeError 引数に整数以外......の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
@raise ArgumentError 引数に負の数を指定した場合に発生します。
//emlist[例][ruby]{
p [1, 2, 3] * 3 #=> [1, 2, 3, 1, 2, 3, 1, 2, 3]
//}... -
Complex
# *(other) -> Complex (18127.0) -
積を計算します。
...積を計算します。
@param other 自身に掛ける数
//emlist[例][ruby]{
Complex(1, 2) * 2 # => (2+4i)
Complex(1, 2) * Complex(2, 3) # => (-4+7i)
Complex(1, 2) * Rational(1, 2) # => ((1/2)+(1/1)*i)
//}... -
Array
# *(sep) -> String (18125.0) -
指定された sep を間にはさんで連結した文字列を生成して返します。Array#join(sep) と同じ動作をします。
...ep) と同じ動作をします。
@param sep 文字列を指定します。
文字列以外のオブジェクトを指定した場合は to_str メソッドによ
る暗黙の型変換を試みます。
//emlist[例][ruby]{
p [1,2,3] * ","
# => "1,2,3"
//}
@see Array#join... -
Integer
# *(other) -> Numeric (18121.0) -
算術演算子。積を計算します。
...算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
2 * 3 # => 6
//}... -
Bignum
# *(other) -> Fixnum | Bignum | Float (18115.0) -
算術演算子。積を計算します。
...算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果... -
Fixnum
# *(other) -> Fixnum | Bignum | Float (18115.0) -
算術演算子。積を計算します。
...算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果... -
Float
# *(other) -> Float (18115.0) -
算術演算子。積を計算します。
...算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 積
2.4 * 3 # => 7.2
//}... -
Integer
# **(other) -> Numeric (6139.0) -
算術演算子。冪(べき乗)を計算します。
...算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@param modulo 指定すると、計算途中に巨大な値を生成せずに (self**other) % modulo と同じ結果を返します。
@return 計算結果
@raise TypeError 2引数 pow で Integer 以......発生します。
@raise RangeError 2引数 pow で other に負の数を指定した場合に発生します。
//emlist[][ruby]{
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1
3.pow(3, 8) # => 3
3.pow(3, -8) # => -5
3.pow(2, -2) # => -1
-3.pow(3, 8) # => 5
-3.pow(3, -8) # => -3
5.pow(2, -8) #......数になりそうなとき、警告を出したうえで Float::INFINITY を返します。
//emlist[計算を放棄して Float::INFINITY を返す例][ruby]{
p 100**9999999
# => warning: in a**b, b may be too big
# Infinity
//}
判定の閾値は変わりえます。
@see BigDecimal#power... -
Bignum
# **(other) -> Fixnum | Bignum | Float (6115.0) -
算術演算子。冪(べき乗)を計算します。
...算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1... -
Fixnum
# **(other) -> Fixnum | Bignum | Float (6115.0) -
算術演算子。冪(べき乗)を計算します。
...算術演算子。冪(べき乗)を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
2 ** 3 # => 8
2 ** 0 # => 1
0 ** 0 # => 1...