572件ヒット
[1-100件を表示]
(0.021秒)
別のキーワード
種類
- インスタンスメソッド (448)
- 文書 (100)
- モジュール (12)
- クラス (12)
ライブラリ
- ビルトイン (424)
- openssl (12)
- pathname (12)
- prettyprint (12)
-
webrick
/ server (12)
クラス
モジュール
- Enumerable (72)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 3
. 1 . 0 (4) - Numeric (12)
- Ruby用語集 (12)
- X509 (12)
-
backtrace
_ locations (24) -
bit
_ length (18) - bytesplice (10)
-
chunk
_ while (12) - combination (24)
- fill (72)
- group (12)
-
max
_ by (48) - permutation (24)
-
repeated
_ combination (24) -
repeated
_ permutation (24) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - sample (48)
- size (24)
-
slice
_ when (12) -
sort
_ by! (24) - tokens (12)
- truncate (12)
- 制御構造 (12)
検索結果
先頭5件
-
Symbol
# length -> Integer (18125.0) -
シンボルに対応する文字列の長さを返します。
...シンボルに対応する文字列の長さを返します。
(self.to_s.length と同じです。)
:foo.length #=> 3
@see String#length, String#size... -
MatchData
# length -> Integer (18117.0) -
部分文字列の数を返します(self.to_a.size と同じです)。
...部分文字列の数を返します(self.to_a.size と同じです)。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.size # => 4
//}... -
Fixnum
# bit _ length -> Integer (6219.0) -
self を表すのに必要なビット数を返します。
...
self を表すのに必要なビット数を返します。
「必要なビット数」とは符号ビットを除く最上位ビットの位置の事を意味しま
す。2**n の場合は n+1 になります。self にそのようなビットがない(0 や
-1 である)場合は 0 を返しま......).bit_length # => 13
(-2**12).bit_length # => 12
(-2**12+1).bit_length # => 12
-0x101.bit_length # => 9
-0x100.bit_length # => 8
-0xff.bit_length # => 8
-2.bit_length # => 1
-1.bit_length # => 0
0.bit_length......# => 0
1.bit_length # => 1
0xff.bit_length # => 8
0x100.bit_length # => 9
(2**12-1).bit_length # => 12
(2**12).bit_length # => 13
(2**12+1).bit_length # => 13
@see Bignum#bit_length... -
Integer
# bit _ length -> Integer (6213.0) -
self を表すのに必要なビット数を返します。
...
self を表すのに必要なビット数を返します。
「必要なビット数」とは符号ビットを除く最上位ビットの位置の事を意味しま
す。2**n の場合は n+1 になります。self にそのようなビットがない(0 や
-1 である)場合は 0 を返しま......t_length # => 13
(-2**12).bit_length # => 12
(-2**12+1).bit_length # => 12
-0x101.bit_length # => 9
-0x100.bit_length # => 8
-0xff.bit_length # => 8
-2.bit_length # => 1
-1.bit_length # => 0
0.bit_length # => 0
1.bit_length......# => 1
0xff.bit_length # => 8
0x100.bit_length # => 9
(2**12-1).bit_length # => 12
(2**12).bit_length # => 13
(2**12+1).bit_length # => 13
//}
@see Integer#size... -
Bignum
# bit _ length -> Integer (6201.0) -
self を表すのに必要なビット数を返します。
...
self を表すのに必要なビット数を返します。
「必要なビット数」とは符号ビットを除く最上位ビットの位置の事を意味しま
す。2**n の場合は n+1 になります。self にそのようなビットがない(0 や
-1 である)場合は 0 を返しま......00-1).bit_length # => 10001
(-2**10000).bit_length # => 10000
(-2**10000+1).bit_length # => 10000
(-2**1000-1).bit_length # => 1001
(-2**1000).bit_length # => 1000
(-2**1000+1).bit_length # => 1000
(2**1000-1).bit_length # => 1000
(2**1000).bit_length # =>......1001
(2**1000+1).bit_length # => 1001
(2**10000-1).bit_length # => 10000
(2**10000).bit_length # => 10001
(2**10000+1).bit_length # => 10001
@see Fixnum#bit_length... -
Symbol
# size -> Integer (3025.0) -
シンボルに対応する文字列の長さを返します。
...シンボルに対応する文字列の長さを返します。
(self.to_s.length と同じです。)
:foo.length #=> 3
@see String#length, String#size... -
MatchData
# size -> Integer (3017.0) -
部分文字列の数を返します(self.to_a.size と同じです)。
...部分文字列の数を返します(self.to_a.size と同じです)。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.size # => 4
//}... -
Array
# permutation(n = self . length) { |p| block } -> self (323.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...a.permutation(0).to_a #=> [[]]: one permutation of length 0
a.permutation(4).to_a #=> [] : no permutations of length 4
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2,... -
String
# bytesplice(index , length , str , str _ index , str _ length) -> String (271.0) -
self の一部または全部を str で置き換えて self を返します。
...
self の一部または全部を str で置き換えて self を返します。
str_index と str_length もしくは str_range が与えられたとき、self の一部または全部を str.byteslice(str_index, str_length) もしくは str.byteslice(str_range) で置き換えます。
ただし......長さが調整されます。
@param index 置換したい文字列の範囲の始端
@param length 置換したい文字列の範囲の長さ
@param str_index str の範囲の始端
@param str_length str の範囲の長さ
@param range 置換したい文字列の範囲を示す Range オブジェ......クト
@param str_range str の範囲を示す Range オブジェクト
@raise IndexError index や length が範囲外の場合に発生
@raise RangeError range が範囲外の場合に発生
@raise IndexError 指定した始端や終端が文字列の境界と一致しない場合に発生
@see S... -
Array
# permutation(n = self . length) -> Enumerator (223.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...a.permutation(0).to_a #=> [[]]: one permutation of length 0
a.permutation(4).to_a #=> [] : no permutations of length 4
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2,... -
Array
# fill(start , length = nil) {|index| . . . } -> self (214.0) -
配列の指定された範囲すべてに val をセットします。
...ます。start の値が負の時には末尾からのインデックスと見倣します。末尾の要素が -1 番目になります。
@param length val を設定する要素の個数を指定します。nil が指定された時は配列の終りまでの長さを意味します。
@param ra...