2307件ヒット
[1-100件を表示]
(0.047秒)
別のキーワード
種類
ライブラリ
- English (33)
- ビルトイン (1041)
- abbrev (11)
- csv (77)
- delegate (11)
- expect (22)
- fileutils (11)
- json (110)
- matrix (77)
- observer (11)
- open3 (11)
- openssl (33)
- optparse (33)
- pathname (11)
- rake (66)
-
rexml
/ document (11) - rubygems (22)
-
rubygems
/ commands / update _ command (11) -
rubygems
/ commands / which _ command (22) -
rubygems
/ dependency _ installer (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ ext / configure _ builder (11) -
rubygems
/ ext / ext _ conf _ builder (11) -
rubygems
/ ext / rake _ builder (11) -
rubygems
/ format (11) -
rubygems
/ gem _ path _ searcher (22) -
rubygems
/ old _ format (11) -
rubygems
/ platform (11) -
rubygems
/ requirement (11) -
rubygems
/ security (11) -
rubygems
/ source _ index (22) -
rubygems
/ source _ info _ cache (11) -
rubygems
/ spec _ fetcher (22) -
rubygems
/ specification (154) - scanf (36)
- set (22)
- shell (30)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (33)
-
webrick
/ httpserver (11) -
webrick
/ httputils (22)
クラス
- Array (524)
- CSV (44)
-
CSV
:: Row (22) -
CSV
:: Table (11) - Data (4)
-
Encoding
:: Converter (22) - Enumerator (22)
-
Gem
:: Commands :: UpdateCommand (11) -
Gem
:: Commands :: WhichCommand (22) -
Gem
:: DependencyInstaller (11) -
Gem
:: DependencyList (11) -
Gem
:: Ext :: ConfigureBuilder (11) -
Gem
:: Ext :: ExtConfBuilder (11) -
Gem
:: Ext :: RakeBuilder (11) -
Gem
:: Format (11) -
Gem
:: GemPathSearcher (22) -
Gem
:: OldFormat (11) -
Gem
:: Platform (11) -
Gem
:: Requirement (11) -
Gem
:: Security :: Policy (11) -
Gem
:: SourceIndex (22) -
Gem
:: SourceInfoCache (11) -
Gem
:: SpecFetcher (22) -
Gem
:: Specification (154) - Hash (22)
- IO (34)
- IPSocket (11)
-
JSON
:: State (55) - MatchData (55)
- Matrix (55)
- Module (24)
- Object (44)
-
OpenSSL
:: X509 :: ExtensionFactory (33) - OptionParser (33)
- Pathname (11)
-
REXML
:: Element (11) -
Rake
:: Application (22) -
Rake
:: FileList (22) - Random (33)
- Range (11)
- Rational (22)
- Regexp (11)
- Set (22)
- Shell (30)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
Socket
:: Option (11) - String (42)
- UDPSocket (11)
- Vector (22)
-
WEBrick
:: HTTPServer :: MountTable (11) -
WEBrick
:: HTTPUtils :: FormData (22)
モジュール
- Enumerable (201)
- FileUtils (22)
- Gem (22)
- JSON (22)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) - Kernel (56)
- Observable (11)
- Open3 (11)
オブジェクト
- main (16)
キーワード
-
$ INPUT _ RECORD _ SEPARATOR (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ RS (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - ArgumentError (11)
-
DEFAULT
_ IGNORE _ PATTERNS (11) -
DEFAULT
_ RAKEFILES (11) -
DELEGATING
_ METHODS (11) - DelegateClass (11)
- Enumerator (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
-
WIN
_ PATTERNS (11) - [] (77)
- abbrev (11)
-
add
_ attributes (11) -
add
_ bindir (11) -
add
_ observer (11) - addr (11)
- all? (12)
- any? (14)
-
array
_ attribute (11) -
array
_ attributes (11) -
array
_ nl (11) -
array
_ nl= (11) -
attribute
_ defaults (11) -
attribute
_ names (11) - bsearch (22)
-
bsearch
_ index (9) - build (33)
-
cert
_ chain (11) - coerce (22)
- collect (22)
- collect! (11)
- collect2 (11)
-
collect
_ concat (22) -
column
_ vector (11) - combination (22)
- concat (30)
- convpath (11)
-
create
_ ext _ from _ array (11) -
create
_ extension (22) - cycle (11)
- deconstruct (2)
-
deconstruct
_ keys (2) -
default
_ system _ path (6) -
default
_ system _ path= (6) -
delete
_ at (11) -
delete
_ if (11) - dependencies (11)
-
dependent
_ gems (11) -
development
_ dependencies (11) - diagonal (11)
-
drop
_ while (22) - each (11)
- each2 (11)
-
each
_ index (11) -
enum
_ for (22) - expect (22)
- fetch (11)
-
fiddle
/ import (11) - fields (11)
-
file
_ entries (22) - filter (6)
- filter! (6)
- find (11)
-
find
_ all (11) -
find
_ index (11) -
find
_ matching (11) -
find
_ paths (11) -
flat
_ map (22) - flatten (33)
- flatten! (22)
-
gather
_ dependencies (11) -
gem
_ paths (11) - generate (11)
-
generate
_ line (11) - grep (22)
- index (11)
-
keep
_ if (11) -
latest
_ specs (11) - list (22)
- map (22)
- map! (11)
-
mark
_ locations _ array (11) -
marshal
_ dump (11) -
max
_ by (22) -
min
_ by (22) - mkdir (18)
- mkpath (11)
- new (11)
-
next
_ values (11) - none? (12)
- on (33)
- one? (12)
- outdated (11)
- pack (19)
- pack テンプレート文字列 (11)
- path (11)
-
pathmap
_ explode (11) -
peek
_ values (11) - permutation (22)
- pipeline (11)
- private (32)
-
private
_ class _ method (8) - rand (33)
-
rb
_ f _ array (11) - read (11)
- readlines (11)
-
recvfrom
_ nonblock (11) - reject (22)
- reject! (11)
-
remove
_ by _ name (11) -
repeated
_ combination (22) -
repeated
_ permutation (22) -
required
_ attributes (11) - requirements (11)
-
reverse
_ each (11) - rindex (11)
- rotate (11)
- rotate! (11)
-
row
_ vector (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
runtime
_ dependencies (11) - scan (11)
- scanf (36)
-
search
_ convpath (11) -
search
_ with _ source (11) - select (11)
- select! (11)
-
sort
_ by (11) -
sort
_ by! (11) - split (11)
-
split
_ all (11) -
system
_ path (6) -
system
_ path= (6) - table (11)
-
take
_ while (22) -
to
_ a (22) -
to
_ ary (11) -
to
_ enum (22) -
to
_ h (11) -
to
_ hash (11) -
to
_ json (11) -
top
_ level _ tasks (11) - union (11)
- unpack (22)
- unpack1 (8)
- unparse (11)
-
values
_ at (55) -
verify
_ gem (11) -
which
_ to _ update (11) - yaml (11)
- 制御構造 (11)
検索結果
先頭5件
-
Array
# at(nth) -> object | nil (36103.0) -
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
nth 番目の要素を返します。nth 番目の要素が存在しない時には nil を返します。
@param nth インデックスを整数で指定します。
先頭の要素が 0 番目になります。nth の値が負の時には末尾から
のインデックスと見倣します。末尾の要素が -1 番目になります。
整数以外のオブジェクトを指定した場合は to_int メソッドによる
暗黙の型変換を試みます。
@raise TypeError 引数に整数以外の(暗黙の型変換が行えない)オブジェクトを
指定... -
Array
# repeated _ combination(n) -> Enumerator (33312.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......epeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
a.repeated_combinatio......して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.repeated_combination(3) {|e| result << e} # => [1,2,3]
result #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
//}
@see Array#repeated_permutation, Array#combination... -
Array
# repeated _ permutation(n) -> Enumerator (33312.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェ......eated_permutation(1).to_a #=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).to_a #=> [[]] # one permutati......ロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
//}
@see Array#repeated_combination, Array#permutation... -
Array
# repeated _ combination(n) { |c| . . . } -> self (33212.0) -
サイズ n の重複組み合わせをすべて生成し、それを引数としてブロックを実行 します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、
組み合わせを生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......epeated_combination(1).to_a #=> [[1], [2], [3]]
a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
a.repeated_combinatio......して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.repeated_combination(3) {|e| result << e} # => [1,2,3]
result #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
# [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
//}
@see Array#repeated_permutation, Array#combination... -
Array
# repeated _ permutation(n) { |p| . . . } -> self (33212.0) -
サイズ n の重複順列をすべて生成し,それを引数としてブロックを実行します。
...実行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェ......eated_permutation(1).to_a #=> [[1], [2]]
a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
a.repeated_permutation(0).to_a #=> [[]] # one permutati......ロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2]
result = []
a.repeated_permutation(3) {|e| result << e} # => [1,2]
result #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
# [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
//}
@see Array#repeated_combination, Array#permutation... -
Array
# values _ at(*selectors) -> Array (27250.0) -
引数で指定されたインデックスに対応する要素を配列で返します。インデッ クスに対応する値がなければ nil が要素になります。
...ues_at( 0, 2, 4 ) #=> ["a", "c", "e"]
p ary.values_at( 3, 4, 5, 6, 35 ) #=> ["d", "e", nil, nil, nil]
p ary.values_at( 0, -1, -2 ) #=> ["a", "e", "d"]
p ary.values_at( -4, -5, -6, -35 ) #=> ["b", "a", nil, nil]
p ary.values_at( 1..2 ) #=> ["b", "c"]
p ary.values_at( 3........10 ) #=> ["d", "e", nil, nil, nil, nil, nil, nil]
p ary.values_at( 6..7 ) #=> [nil, nil]
p ary.values_at( 0, 3..5 ) #=> ["a", "d", "e", nil]
//}... -
Array
# combination(n) -> Enumerator (27212.0) -
サイズ n の組み合わせをすべて生成し、それを引数としてブロックを実行します。
...得られる組み合わせの順序は保証されません。ブロックなしで呼び出されると、組み合わせ
を生成する Enumerator オブジェクトを返します。
@param n 生成される配列のサイズを整数で指定します。
整数以外のオブジェ......3, 4]
a.combination(1).to_a #=> [[1],[2],[3],[4]]
a.combination(2).to_a #=> [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]]
a.combination(3).to_a #=> [[1,2,3],[1,2,4],[1,3,4],[2,3,4]]
a.combination(4).to_a #=> [[1,2,3,4]]
a.combination(0).to_a #=> [[]]: one combination of length 0
a.combination(5).to_a......た配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3, 4]
result = []
a.combination(2) {|e| result << e} # => [1,2,3,4]
result #=> [[1,2],[1,3],[1,4],[2,3],[2,4],[3,4]]
//}
@see Array#permutation, Array#repeated_combination... -
Array
# permutation(n = self . length) -> Enumerator (27212.0) -
サイズ n の順列をすべて生成し,それを引数としてブロックを実行します。
...行します。
得られる順列の順序は保証されません。ブロックなしで呼び出されると, 順列
を生成する Enumerator オブジェクトを返します。
@param n 生成する配列のサイズを整数で指定します。
整数以外のオブジェク......utation.to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
a.permutation(1).to_a #=> [[1],[2],[3]]
a.permutation(2).to_a #=> [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
a.permutation(3).to_a #=> [[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
a.permutation(0).to_a #=> [[]]: one permutati......した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = [1, 2, 3]
result = []
a.permutation(2) {|e| result << e} # => [1,2,3]
result # => [[1,2],[1,3],[2,1],[2,3],[3,1],[3,2]]
//}
@see Array#combination, Array#repeated_permutation... -
Array
# concat(*other _ arrays) -> self (27209.0) -
other_arrays の要素を自身の末尾に破壊的に連結します。
...other_arrays の要素を自身の末尾に破壊的に連結します。
@param other_arrays 自身と連結したい配列を指定します。
//emlist[例][ruby]{
[ "a", "b" ].concat( ["c", "d"] ) #=> [ "a", "b", "c", "d" ]
[ "a" ].concat( ["b"], ["c", "d"] ) #=> [ "a", "b", "c", "d" ]
[ "a"......].concat #=> [ "a" ]
a = [ 1, 2, 3 ]
a.concat( [ 4, 5 ] )
a #=> [ 1, 2, 3, 4, 5 ]
a = [ 1, 2 ]
a.concat(a, a) #=> [1, 2, 1, 2, 1, 2]
//}
@see Array#+... -
Array
# rotate(cnt = 1) -> Array (27207.0) -
cnt で指定したインデックスの要素が先頭になる配列を新しく作成します。 cnt より前の要素は末尾に移動します。cnt に負の数を指定した場合、逆の操 作を行います。
...ます。
//emlist[例][ruby]{
a = [ "a", "b", "c", "d" ]
a.rotate # => ["b", "c", "d", "a"]
a # => ["a", "b", "c", "d"]
a.rotate(2) # => ["c", "d", "a", "b"]
a.rotate(-1) # => ["d", "a", "b", "c"]
a.rotate(-3) # => ["b", "c", "d", "a"]
//}
@see Array#rotate!...