種類
ライブラリ
- English (36)
- ビルトイン (1685)
- benchmark (12)
- bigdecimal (12)
- csv (168)
- date (4)
- dbm (24)
- delegate (12)
- fileutils (108)
- getoptlong (12)
- json (36)
- matrix (12)
-
minitest
/ unit (2) - mkmf (48)
-
net
/ imap (60) - objspace (12)
- observer (24)
- open3 (108)
- openssl (36)
- optparse (108)
- ostruct (10)
- psych (43)
- rake (96)
-
rake
/ rdoctask (24) -
rdoc
/ context (12) -
rdoc
/ text (12) - readline (36)
-
rexml
/ document (48) -
rinda
/ rinda (36) -
rinda
/ tuplespace (48) - rubygems (12)
-
rubygems
/ command (72) -
rubygems
/ command _ manager (24) -
rubygems
/ commands / build _ command (12) -
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / update _ command (12) -
rubygems
/ commands / which _ command (24) -
rubygems
/ dependency (12) -
rubygems
/ dependency _ installer (72) -
rubygems
/ dependency _ list (24) -
rubygems
/ doc _ manager (12) -
rubygems
/ ext / configure _ builder (12) -
rubygems
/ ext / ext _ conf _ builder (12) -
rubygems
/ ext / rake _ builder (12) -
rubygems
/ indexer (24) -
rubygems
/ old _ format (12) -
rubygems
/ package / tar _ header (12) -
rubygems
/ security (12) -
rubygems
/ source _ index (24) -
rubygems
/ spec _ fetcher (24) -
rubygems
/ specification (84) -
rubygems
/ version (24) - scanf (12)
- shell (18)
-
shell
/ command-processor (6) -
shell
/ filter (6) - shellwords (24)
- socket (108)
- thwait (6)
- tsort (36)
-
webrick
/ config (12) -
webrick
/ httprequest (24) -
webrick
/ httputils (36) - win32ole (24)
- zlib (12)
クラス
-
ARGF
. class (72) - Array (870)
- BasicSocket (12)
- BigDecimal (12)
- CSV (84)
-
CSV
:: Row (36) -
CSV
:: Table (48) - Complex (12)
- DBM (24)
- Data (3)
- Date (2)
- DateTime (2)
-
Encoding
:: Converter (36) -
Gem
:: Command (72) -
Gem
:: CommandManager (24) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: Commands :: WhichCommand (24) -
Gem
:: Dependency (12) -
Gem
:: DependencyInstaller (72) -
Gem
:: DependencyList (24) -
Gem
:: DocManager (12) -
Gem
:: Ext :: ConfigureBuilder (12) -
Gem
:: Ext :: ExtConfBuilder (12) -
Gem
:: Ext :: RakeBuilder (12) -
Gem
:: Indexer (24) -
Gem
:: OldFormat (12) -
Gem
:: Package :: TarHeader (12) -
Gem
:: Security :: Policy (12) -
Gem
:: SourceIndex (24) -
Gem
:: SpecFetcher (24) -
Gem
:: Specification (84) -
Gem
:: Version (24) - GetoptLong (12)
- Hash (10)
- IO (24)
- IPSocket (24)
- MatchData (62)
- Matrix (12)
- Method (44)
-
MiniTest
:: Unit :: TestCase (1) - Module (228)
-
Net
:: IMAP (12) -
Net
:: IMAP :: BodyTypeBasic (12) -
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: IMAP :: BodyTypeMultipart (12) -
Net
:: IMAP :: BodyTypeText (12) - Object (48)
-
OpenSSL
:: X509 :: ExtensionFactory (12) - OpenStruct (10)
- OptionParser (108)
-
RDoc
:: Context (12) -
REXML
:: Element (12) -
REXML
:: Parent (36) -
Rake
:: Application (12) -
Rake
:: FileList (72) -
Rake
:: RDocTask (24) - Random (60)
- Range (14)
- Rational (12)
-
Rinda
:: TupleEntry (12) -
Rinda
:: TupleSpace (36) -
Rinda
:: TupleSpaceProxy (36) -
RubyVM
:: AbstractSyntaxTree :: Node (7) - Shell (18)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (60)
- String (48)
- Struct (16)
- ThreadsWait (6)
- Time (2)
- UDPSocket (12)
- UnboundMethod (24)
-
WEBrick
:: HTTPRequest (24) -
WEBrick
:: HTTPUtils :: FormData (24) - WIN32OLE (12)
-
WIN32OLE
_ VARIANT (12) -
Zlib
:: GzipReader (12)
モジュール
- Benchmark (12)
- Enumerable (81)
- FileUtils (108)
- Gem (12)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) - Kernel (96)
-
MiniTest
:: Assertions (1) - ObjectSpace (36)
- Observable (24)
- Open3 (108)
-
OpenSSL
:: SSL :: SocketForwarder (24) - Psych (43)
-
RDoc
:: Text (12) - Shellwords (24)
- TSort (36)
-
WEBrick
:: Config (12) -
WEBrick
:: HTTPUtils (12)
オブジェクト
-
Readline
:: HISTORY (24)
キーワード
-
$ INPUT _ RECORD _ SEPARATOR (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ RS (12) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - == (24)
- === (8)
-
ARRAY
_ METHODS (12) - Array (24)
-
DEFAULT
_ IGNORE _ PATTERNS (12) -
DEFAULT
_ RAKEFILES (12) -
DELEGATING
_ METHODS (12) - DIRECTORIES (12)
- DelegateClass (12)
- DigestAuth (12)
- FIELDS (12)
- HISTORY (12)
- Hash (12)
- METHODS (12)
-
MUST
_ DEFINE (12) -
MUST
_ NOT _ DEFINE (12) - Marshal フォーマット (12)
-
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - ORDERINGS (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
- TYPES (12)
- [] (132)
- []= (84)
-
_ invoke (12) -
add
_ attributes (12) -
add
_ bindir (12) -
add
_ extra _ args (12) -
add
_ observer (12) -
add
_ to (12) - addr (36)
- any? (48)
- append (8)
-
assert
_ send (1) - at (12)
-
attribute
_ defaults (12) - bmbm (12)
-
bsearch
_ index (20) - build (36)
-
build
_ args (12) - call (24)
- children (7)
- chmod (12)
-
chmod
_ R (12) - coerce (12)
-
collect
_ method (12) -
command
_ names (12) - commands (12)
-
compact
_ specs (12) - concat (18)
-
configured
_ args (12) - convpath (12)
-
create
_ extension (12) -
deconstruct
_ keys (17) -
default
_ system _ path (6) -
default
_ system _ path= (6) -
define
_ finalizer (24) - delete (24)
-
delete
_ at (12) -
delete
_ if (24) -
delete
_ observers (12) -
depend
_ rules (12) - dependencies (12)
-
dependent
_ gems (12) -
development
_ dependencies (12) - diagonal (12)
- difference (7)
- dig (40)
- drop (24)
-
drop
_ while (48) - dump (24)
- dup (12)
-
each
_ index (24) - entries (7)
-
enum
_ for (24) - eql? (12)
- extension (48)
-
extra
_ args (12) - fcntl (12)
- fetch (12)
-
fiddle
/ import (12) - fields (12)
-
file
_ entries (12) - fill (36)
- filter! (14)
-
find
_ command _ possibilities (12) -
find
_ gems _ with _ sources (12) -
find
_ index (36) -
find
_ matching (12) -
find
_ paths (12) -
find
_ reverse _ dependencies (12) -
find
_ spec _ by _ name _ and _ version (12) -
find
_ type (24) -
force
_ encoding (12) -
gather
_ dependencies (12) -
gem
_ file _ list (12) -
gem
_ paths (12) -
gems
_ to _ install (12) -
get
_ all _ gem _ names (12) - getaddrinfo (12)
- gethostbyaddr (12)
-
header
_ converters (12) - headers (36)
- include? (12)
- index (36)
- install (12)
-
install
_ rb (12) -
installed
_ gems (12) - ioctl (12)
- join (12)
-
keep
_ if (24) -
kind
_ of? (12) -
latest
_ specs (12) - list (12)
-
load
_ gemspecs (12) - makedirs (12)
-
mark
_ locations _ array (12) -
marshal
_ dump (48) -
marshal
_ load (24) - mkdir (18)
-
mkdir
_ p (12) - mkpath (12)
-
module
_ function (36) - new (12)
- none? (42)
- on (108)
-
option
_ list (12) - outdated (12)
- pack (21)
- pack テンプレート文字列 (12)
- pair (12)
- parse (12)
-
pathmap
_ explode (12) - peeraddr (36)
- pipeline (12)
-
pipeline
_ r (24) -
pipeline
_ rw (24) -
pipeline
_ start (24) -
pipeline
_ w (24) - prepend (8)
-
primitive
_ errinfo (12) - private (48)
-
private
_ class _ method (24) - product (24)
- protected (48)
- public (48)
-
public
_ class _ method (24) - push (8)
- rand (36)
-
rb
_ check _ convert _ type (12) -
rdoc
/ parser / c (12) -
reachable
_ objects _ from (12) - read (48)
-
read
_ all (24) - readline (12)
- readlines (72)
-
recvfrom
_ nonblock (12) - reject! (24)
-
remove
_ by _ name (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) -
required
_ attributes (12) -
response
_ handlers (12) - rindex (36)
- rotate (12)
- rotate! (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
runtime
_ dependencies (12) -
safe
_ load (19) - sample (24)
- scanf (12)
-
search
_ convpath (12) - select (12)
- select! (24)
- sendmsg (12)
- shelljoin (12)
- shellwords (12)
- shuffle (12)
- shuffle! (12)
- socketpair (12)
- sort (24)
- sort! (24)
-
spec
_ predecessors (12) -
specific
_ extra _ args (12) -
split
_ header _ value (12) -
strongly
_ connected _ components (24) - take (24)
-
test
_ methods (1) - threads (6)
-
to
_ a (55) -
to
_ ary (12) -
to
_ enum (24) -
to
_ json (12) - tsort (12)
- union (7)
- unpack (12)
-
unpack
_ sockaddr _ in (12) - unshift (8)
- value (12)
-
values
_ at (48) -
verify
_ gem (12) -
which
_ to _ update (12) - yaml (12)
- zip (24)
- クラス/メソッドの定義 (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- リテラル (12)
- 制御構造 (12)
検索結果
先頭5件
-
Gem
:: Specification # development _ dependencies -> Array (18401.0) -
この Gem が依存している Gem のリストを返します。
この Gem が依存している Gem のリストを返します。 -
Gem
:: DependencyInstaller # gather _ dependencies -> Array (18301.0) -
依存関係を無視するように指定されていない限り、インストールするように指定された Gem が依存している Gem の情報を集めて返します。
依存関係を無視するように指定されていない限り、インストールするように指定された
Gem が依存している Gem の情報を集めて返します。 -
WIN32OLE
_ VARIANT . array(dims , vt) -> WIN32OLE _ VARIANT (18207.0) -
配列用のVARIANTオブジェクトを生成します。
...ションの配列の次元と添え字の関係はVB型だという点に注意してください。こ
れはCと逆順の並びです。
@param dims 各次元の要素数を示す配列を与えます。たとえば4要素のベクター
であれば[4]、各3要素の2次元配列......ト。
次の例は、最初の次元が3要素、次の次元が4要素の2次元配列を生成する例です。
ole_ary = WIN32OLE_VARIANT.array([3,4], WIN32OLE::VARIANT::VT_I4)
ruby_ary = ole_ary.value # => [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
@see WIN32OLE_VARIANT#value, WIN32OL... -
Array
# difference(*other _ arrays) -> Array (15307.0) -
自身から other_arrays の要素を取り除いた配列を生成して返します。
...自身から other_arrays の要素を取り除いた配列を生成して返します。
要素の同一性は Object#hash と Object#eql? により評価されます。
self 中で重複していて、other_arrays中に存在していなかった要素は、その重複が保持されます。......素の順と同じです。
//emlist[例][ruby]{
[ 1, 1, 2, 2, 3, 3, 4, 5 ].difference([ 1, 2, 4 ]) # => [ 3, 3, 5 ]
[ 1, 'c', :s, 'yep' ].difference([ 1 ], [ 'a', 'c' ]) # => [:s, "yep"]
//}
集合のような振る舞いが必要なら Set も参照してください。
@see Array#-... -
Array
# drop(n) -> Array (15213.0) -
配列の先頭の n 要素を捨てて、 残りの要素を配列として返します。 このメソッドは自身を破壊的に変更しません。
...は自身を破壊的に変更しません。
@param n 捨てる要素数。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5, 0]
a.drop(3) # => [4, 5, 0]
# 変数aの値は変化しない
a # => [1, 2, 3, 4, 5, 0]
//}
@see Enumerable#drop, Array#drop_while, Array#shift... -
Array
# each _ index {|index| . . . . } -> self (15212.0) -
各要素のインデックスに対してブロックを評価します。
...を評価します。
以下と同じです。
//emlist[例][ruby]{
(0 ... ary.size).each do |index|
# ....
end
//}
ブロックが与えられなかった場合は、自身と each_index から生成した
Enumerator オブジェクトを返します。
@see Array#each, Array#reverse_each... -
Array
# drop _ while {|element| . . . } -> Array (15207.0) -
ブロックを評価して最初に偽となった要素の手前の要素まで捨て、 残りの要素を配列として返します。 このメソッドは自身を破壊的に変更しません。
...ロックを指定しなかった場合は、Enumerator を返します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5, 0]
a.drop_while {|i| i < 3 } # => [3, 4, 5, 0]
# 変数aの値は変化しない
a # => [1, 2, 3, 4, 5, 0]
//}
@see Enumerable#drop_while, Array#drop... -
Array
# product(*lists) -> Array (15201.0) -
レシーバの配列と引数で与えられた配列(複数可)のそれぞれから要素を1 個ずつとって配列とし,それらのすべての配列を要素とする配列を返します。
...][ruby]{
[1,2,3].product([4,5]) # => [[1,4],[1,5],[2,4],[2,5],[3,4],[3,5]]
[1,2].product([1,2]) # => [[1,1],[1,2],[2,1],[2,2]]
[1,2].product([3,4],[5,6]) # => [[1,3,5],[1,3,6],[1,4,5],[1,4,6],
# [2,3,5],[2,3,6],[2,4,5],[2,4,6]]
[1,2].product() # =>......[[1],[2]]
[1,2].product([]) # => []
//}
ブロックが与えられた場合、作成した配列の各要素を引数としてブロックを実
行して self を返します。
//emlist[例][ruby]{
a = []
[1,2,3].product([4,5]) {|e| a << e} # => [1,2,3]
a # => [[1,4],[1,5],[2,4],[2,5]... -
Array
# append(*obj) -> self (15154.0) -
指定された obj を順番に配列の末尾に追加します。 引数を指定しなければ何もしません。
...れば何もしません。
@param obj 自身に追加したいオブジェクトを指定します。
//emlist[例][ruby]{
array = [1, 2, 3]
array.push 4
array.push [5, 6]
array.push 7, 8
p array # => [1, 2, 3, 4, [5, 6], 7, 8]
//}
@see Array#pop, Array#shift, Array#unshift, Array#<<... -
Array
# bsearch _ index -> Enumerator (15124.0) -
ブロックの評価結果で範囲内の各要素の判定を行い、条件を満たす値の位置を 二分探索(計算量は O(log n))で検索します。要素が見つからない場合は nil を返します。self はあらかじめソートしておく必要があります。
...メソッドはArray#bsearchと同様に、ブロックを評価した結果により2
つのモードで動作します。Array#bsearch との違いは見つかった要素自
身を返すか位置を返すかのみです。各モードのより詳細な違いについては
Array#bsearch を参照......さい。
//emlist[例: find-minimum モード][ruby]{
ary = [0, 4, 7, 10, 12]
ary.bsearch_index { |x| x >= 4 } # => 1
ary.bsearch_index { |x| x >= 6 } # => 2
ary.bsearch_index { |x| x >= -1 } # => 0
ary.bsearch_index { |x| x >= 100 } # => nil
//}
//emlist[例: find-any モード][ruby]{
ary......= [0, 4, 7, 10, 12]
# 4 <= v < 8 になる要素の位置を検索
ary.bsearch_index { |x| 1 - x / 4 } # => 2
# 8 <= v < 10 になる要素の位置を検索
ary.bsearch_index { |x| 4 - x / 2 } # => nil
//}
@see Array#bsearch...