種類
ライブラリ
- English (48)
- ビルトイン (3952)
- abbrev (12)
- benchmark (24)
- bigdecimal (12)
-
cgi
/ core (48) - coverage (7)
- csv (408)
- date (4)
- dbm (24)
- delegate (12)
- erb (12)
- expect (24)
- fileutils (144)
- getoptlong (24)
-
irb
/ inspector (12) - json (96)
- logger (12)
- matrix (132)
-
minitest
/ unit (7) - mkmf (48)
-
net
/ imap (60) - objspace (12)
- observer (24)
- open3 (108)
- openssl (72)
- optparse (192)
- ostruct (10)
- pathname (12)
- pp (24)
- profiler (6)
- pstore (12)
- psych (26)
- rake (348)
-
rake
/ rdoctask (24) -
rake
/ testtask (24) -
rdoc
/ context (12) -
rdoc
/ text (12) - readline (36)
-
rexml
/ document (72) -
rexml
/ parsers / pullparser (24) -
rexml
/ parsers / ultralightparser (12) -
rinda
/ rinda (36) -
rinda
/ tuplespace (48) - rubygems (36)
-
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
/ config _ file (12) -
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
/ format (12) -
rubygems
/ indexer (24) -
rubygems
/ old _ format (12) -
rubygems
/ package / tar _ header (12) -
rubygems
/ platform (12) -
rubygems
/ requirement (24) -
rubygems
/ security (24) -
rubygems
/ source _ index (24) -
rubygems
/ source _ info _ cache (24) -
rubygems
/ spec _ fetcher (48) -
rubygems
/ specification (168) -
rubygems
/ user _ interaction (24) -
rubygems
/ version (24) - scanf (36)
- set (18)
- shell (24)
-
shell
/ command-processor (6) -
shell
/ filter (6) -
shell
/ process-controller (18) - shellwords (36)
- socket (204)
- thwait (6)
- tsort (48)
-
webrick
/ config (12) -
webrick
/ httprequest (24) -
webrick
/ https (12) -
webrick
/ httpserver (12) -
webrick
/ httputils (36) -
win32
/ registry (12) - win32ole (84)
- zlib (24)
クラス
-
ARGF
. class (84) - Array (2250)
- BasicSocket (12)
-
Benchmark
:: Tms (12) - BigDecimal (12)
-
CGI
:: Cookie (12) - CSV (180)
-
CSV
:: Row (72) -
CSV
:: Table (132) - Complex (12)
- Coverage (7)
- DBM (24)
- Data (3)
- Date (2)
- DateTime (2)
- ERB (12)
-
Encoding
:: Converter (36) - Enumerator (24)
-
Gem
:: Command (72) -
Gem
:: CommandManager (24) -
Gem
:: Commands :: BuildCommand (12) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: Commands :: WhichCommand (24) -
Gem
:: ConfigFile (12) -
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
:: Format (12) -
Gem
:: Indexer (24) -
Gem
:: OldFormat (12) -
Gem
:: Package :: TarHeader (12) -
Gem
:: Platform (12) -
Gem
:: Requirement (24) -
Gem
:: Security :: Policy (12) -
Gem
:: Security :: Signer (12) -
Gem
:: SourceIndex (24) -
Gem
:: SourceInfoCache (24) -
Gem
:: SpecFetcher (48) -
Gem
:: Specification (168) -
Gem
:: StreamUI (12) -
Gem
:: Version (24) - GetoptLong (24)
- Hash (48)
- IO (60)
- IPSocket (36)
-
IRB
:: Inspector (12) -
JSON
:: Parser (12) -
JSON
:: State (24) - Logger (12)
- MatchData (62)
- Matrix (60)
- Method (44)
-
MiniTest
:: Unit (2) -
MiniTest
:: Unit :: TestCase (2) - Module (180)
-
Net
:: IMAP (12) -
Net
:: IMAP :: BodyTypeBasic (12) -
Net
:: IMAP :: BodyTypeMessage (12) -
Net
:: IMAP :: BodyTypeMultipart (12) -
Net
:: IMAP :: BodyTypeText (12) - NilClass (12)
- Object (124)
-
OpenSSL
:: BN (12) -
OpenSSL
:: X509 :: ExtensionFactory (36) - OpenStruct (10)
- OptionParser (144)
-
OptionParser
:: ParseError (48) - PStore (12)
- Pathname (12)
-
RDoc
:: Context (12) -
REXML
:: Element (12) -
REXML
:: Entity (24) -
REXML
:: Parent (36) -
REXML
:: Parsers :: PullEvent (24) -
REXML
:: Parsers :: UltraLightParser (12) -
Rake
:: Application (24) -
Rake
:: FileList (156) -
Rake
:: NameSpace (12) -
Rake
:: RDocTask (24) -
Rake
:: Task (60) -
Rake
:: TaskArguments (12) -
Rake
:: TestTask (24) - Random (60)
- Range (38)
- Rational (24)
- Regexp (24)
-
Rinda
:: TupleEntry (12) -
Rinda
:: TupleSpace (36) -
Rinda
:: TupleSpaceProxy (36) -
RubyVM
:: AbstractSyntaxTree :: Node (7) -
RubyVM
:: InstructionSequence (12) - Set (24)
- Shell (24)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
Shell
:: ProcessController (18) - Socket (120)
-
Socket
:: Option (12) - String (57)
- Struct (28)
- TCPSocket (12)
- ThreadsWait (6)
- Time (14)
- UDPSocket (12)
- UnboundMethod (24)
- Vector (72)
-
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPServer :: MountTable (12) -
WEBrick
:: HTTPUtils :: FormData (24) - WIN32OLE (12)
-
WIN32OLE
_ VARIANT (60) -
Win32
:: Registry (12) -
Zlib
:: GzipReader (12)
モジュール
- Benchmark (12)
-
CGI
:: QueryExtension (24) -
CGI
:: QueryExtension :: Value (24) - Enumerable (651)
- FileUtils (156)
-
GC
:: Profiler (12) - Gem (36)
-
Gem
:: UserInteraction (12) - JSON (24)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) - Kernel (156)
- MiniTest (1)
-
MiniTest
:: Assertions (2) - ObjectSpace (36)
- Observable (24)
- Open3 (108)
-
OpenSSL
:: SSL :: SocketForwarder (24) - Psych (26)
-
RDoc
:: Text (12) -
Rake
:: TaskManager (48) - Shellwords (24)
- TSort (48)
-
WEBrick
:: Config (12) -
WEBrick
:: HTTPUtils (12) -
WIN32OLE
:: VARIANT (12) - Warning (1)
- Zlib (12)
オブジェクト
- ENV (24)
-
Readline
:: HISTORY (24) - main (35)
キーワード
-
$ , (12) -
$ INPUT _ RECORD _ SEPARATOR (12) -
$ OFS (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ RS (12) - & (12)
- * (36)
- + (12)
- - (12)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (24)
- <=> (12)
- == (36)
- === (8)
- =~ (16)
-
ARGUMENT
_ FLAGS (12) - ARGV (12)
-
ARRAY
_ METHODS (12) - ArgumentError (12)
-
DEFAULT
_ IGNORE _ PATTERNS (12) -
DEFAULT
_ RAKEFILES (12) -
DELEGATING
_ METHODS (12) - DIRECTORIES (12)
- DelegateClass (12)
- DigestAuth (12)
- Enumerable (12)
- Enumerator (12)
- FIELDS (12)
- FileList (12)
- FrozenError (8)
- HISTORY (12)
- METHODS (12)
-
MUST
_ DEFINE (12) -
MUST
_ NOT _ DEFINE (12) - Marshal フォーマット (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - ORDERINGS (12)
-
Profiler
_ _ (6) - RARRAY (12)
- Row (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
-
SEV
_ LABEL (12) -
SPECIAL
_ RETURN (12) - TYPES (12)
-
VT
_ ARRAY (12) -
WIN
_ PATTERNS (12) - [] (228)
- []= (96)
-
_ invoke (12) - abbrev (12)
- accept (12)
-
accept
_ nonblock (12) - actions (12)
-
active
_ jobs (6) -
add
_ attributes (12) -
add
_ bindir (12) -
add
_ extra _ args (12) -
add
_ observer (12) -
add
_ to (12) - addr (36)
- all? (42)
- any? (62)
- append (8)
-
arg
_ names (12) - args (24)
- argv (12)
- array (12)
-
array
_ attribute (12) -
array
_ attributes (12) -
array
_ nl (12) -
array
_ nl= (12) -
assert
_ send (1) - assoc (36)
- at (12)
-
attribute
_ defaults (12) -
attribute
_ names (12) - bmbm (12)
- bsearch (48)
-
bsearch
_ index (20) - build (36)
-
build
_ args (12) - call (24)
-
capture
_ io (1) - categories (1)
-
cert
_ chain (24) - children (7)
- chmod (12)
-
chmod
_ R (12) -
choose
_ from _ list (24) - chown (12)
-
chown
_ R (12) - cipher (12)
- clear (12)
- clone (12)
- coerce (48)
- collect (48)
- collect! (24)
- collect2 (24)
-
collect
_ concat (24) -
collect
_ method (12) -
column
_ vector (12) - combination (24)
-
command
_ names (12) - commands (12)
- compact (16)
- compact! (12)
-
compact
_ specs (12) - concat (33)
-
configured
_ args (12) - converters (12)
- convpath (12)
- count (72)
-
crc
_ table (12) -
create
_ ext _ from _ array (12) -
create
_ extension (24) -
current
_ scope (12) - cycle (24)
-
deconstruct
_ keys (17) -
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 (30)
- drop (24)
-
drop
_ while (48) - dump (12)
- dup (12)
- each (24)
- each2 (24)
-
each
_ index (24) - empty? (12)
- entries (7)
-
enum
_ for (24) - eql? (24)
- expect (24)
- extension (48)
-
extra
_ args (12) - fcntl (12)
- fetch (48)
-
fiddle
/ import (12) - fields (12)
-
file
_ entries (24) - fill (72)
- filter (14)
- filter! (14)
-
filter
_ backtrace (13) -
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) - first (48)
-
flat
_ map (24) - flatten (24)
- flatten! (12)
-
force
_ encoding (12) - freeze (12)
-
gather
_ dependencies (12) -
gem
_ file _ list (12) -
gem
_ paths (12) -
gems
_ to _ install (12) - generate (12)
-
generate
_ line (12) -
get
_ all _ gem _ names (12) - getaddrinfo (12)
- gethostbyaddr (12)
- gethostbyname (24)
- getnameinfo (12)
- gets (12)
- grep (24)
- hash (12)
-
header
_ converters (12) - headers (36)
- import (12)
-
in
_ namespace (12) - include? (12)
- index (36)
- insert (12)
- inspect (12)
- install (12)
-
install
_ rb (12) -
installed
_ gems (12) - intersect? (4)
- intersection (18)
- ioctl (12)
-
is
_ a? (12) - jobs (12)
- join (24)
-
keep
_ if (24) -
keys
_ with _ inspector (12) -
kind
_ of? (12) - last (24)
-
latest
_ specs (12) -
legacy
_ repos (12) - length (36)
- libs (12)
-
line
_ stub (7) - list (36)
-
load
_ gemspecs (12) - makedirs (12)
- map (48)
- map! (24)
- map2 (12)
-
mark
_ locations _ array (12) -
marshal
_ dump (48) -
marshal
_ load (24) - max (84)
-
max
_ by (48) - min (84)
-
min
_ by (48) - minmax (24)
- mkdir (18)
-
mkdir
_ p (12) - mkpath (12)
-
module
_ function (24) - names (12)
- new (96)
-
next
_ values (12) - none? (42)
- on (144)
- one? (42)
-
option
_ list (12) - outdated (12)
- p (12)
- pack (21)
- pack テンプレート文字列 (12)
- pair (12)
- params (12)
- parse (60)
-
parse
_ line (12) - path (12)
-
pathmap
_ explode (12) -
peek
_ values (12) - peeraddr (36)
- permutation (24)
- pipeline (12)
-
pipeline
_ r (24) -
pipeline
_ rw (24) -
pipeline
_ start (24) -
pipeline
_ w (24) - pop (24)
- prepend (8)
- prerequisites (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) -
primitive
_ errinfo (12) - private (68)
-
private
_ class _ method (24) - product (24)
- profile (6)
- protected (48)
- public (51)
- push (12)
- rand (36)
- rassoc (36)
-
rb
_ Array (12) -
rb
_ ary _ new (12) -
rb
_ ary _ new2 (12) -
rb
_ ary _ new3 (12) -
rb
_ ary _ to _ s (12) -
rb
_ check _ convert _ type (12) -
rb
_ f _ array (12) -
rdoc
/ parser / c (12) -
reachable
_ objects _ from (12) - read (48)
-
read
_ all (24) - readline (12)
- readlines (72)
- recover (12)
- recvfrom (12)
-
recvfrom
_ nonblock (12) - reject (48)
- reject! (24)
-
remove
_ by _ name (12) -
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (12)
- report (1)
-
required
_ attributes (12) - requirements (12)
-
resolve
_ args (12) -
response
_ handlers (12) - result (12)
- reverse (12)
- reverse! (12)
-
reverse
_ each (24) - rindex (36)
- roots (12)
- rotate (12)
- rotate! (12)
- row (12)
-
row
_ vector (12) - rss (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
ruby
_ opts (12) -
run
_ test _ suites (1) -
runtime
_ dependencies (12) -
safe
_ load (14) - sample (48)
- scan (12)
- scanf (36)
-
search
_ convpath (12) -
search
_ with _ source (24) - select (36)
- select! (24)
- sendmsg (12)
-
set
_ backtrace (12) -
set
_ eoutvar (12) - shelljoin (24)
- shellwords (12)
- shift (36)
- shuffle (24)
- shuffle! (24)
- size (36)
- slice (36)
- slice! (36)
- socketpair (12)
- sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (24) - sources (12)
-
spec
_ predecessors (12) -
specific
_ extra _ args (12) - split (12)
-
split
_ all (12) -
split
_ header _ value (12) -
strongly
_ connected _ components (24) - sum (42)
- sysaccept (12)
-
system
_ path (6) - table (24)
- take (48)
-
take
_ while (48) - tasks (36)
-
test
_ methods (1) -
test
_ suites (1) - threads (6)
-
to
_ a (223) -
to
_ ary (60) -
to
_ csv (12) -
to
_ enum (24) -
to
_ h (19) -
to
_ json (12) -
to
_ s (12) -
top
_ level _ tasks (12) - transpose (12)
-
try
_ convert (12) - tsort (36)
- union (19)
- uniq (48)
- uniq! (24)
- unpack (24)
- unpack1 (9)
-
unpack
_ sockaddr _ in (12) - unparse (12)
- unshift (12)
- value (24)
-
values
_ at (48) - vartype (12)
-
verify
_ gem (12) -
waiting
_ jobs (6) -
which
_ to _ update (12) - yaml (12)
- zip (24)
- | (12)
- クラス/メソッドの定義 (12)
- パターンマッチ (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- リテラル (12)
- 制御構造 (12)
検索結果
先頭5件
-
Array (44000.0)
-
配列クラスです。 配列は任意の Ruby オブジェクトを要素として持つことができます。
...配列クラスです。
配列は任意の Ruby オブジェクトを要素として持つことができます。
一般的には配列は配列式を使って
//emlist[例][ruby]{
[1, 2, 3]
//}
のように生成します。... -
VALUE rb
_ Array(VALUE obj) (32232.0) -
obj が Array でない場合は to_a を使って Array に変換します。
...obj が Array でない場合は to_a を使って
Array に変換します。... -
static VALUE rb
_ f _ array(VALUE obj , VALUE arg) (32216.0) -
Kernel.#Array の実体です。
...Kernel.#Array の実体です。... -
JSON
:: Ext :: Generator :: GeneratorMethods :: Array (30016.0) -
Alias of JSON::Generator::GeneratorMethods::Array
...Alias of JSON::Generator::GeneratorMethods::Array... -
JSON
:: Generator :: GeneratorMethods :: Array (30016.0) -
Array に JSON で使用するインスタンスメソッドを追加するためのモジュールです。
...Array に JSON で使用するインスタンスメソッドを追加するためのモジュールです。... -
Array
# difference(*other _ arrays) -> Array (27307.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
# intersection(*other _ arrays) -> Array (27307.0) -
自身と引数に渡された配列の共通要素を新しい配列として返します。 要素が重複する場合は、そのうちの1つのみを返します。 要素の順序は自身の順序を維持します。
...持します。
@param other_arrays 自身と共通要素を取りたい配列を指定します。
配列以外のオブジェクトを指定した場合は to_ary
メソッドによる暗黙の型変換を試みます。
@raise TypeError 引数に配列以......合に発生します。
intersectionはObject#hashとObject#eql?を使って比較を行います。
//emlist[例][ruby]{
[1, 1, 3, 5].intersection([3, 2, 1]) # => [1, 3]
["a", "b", "z"].intersection(["a", "b", "c"], ["b"]) # => ["b"]
["a"].intersection......# => ["a"]
//}
@see Set#intersection, Array#&... -
Array
# rassoc(obj) -> Array | nil (27307.0) -
自身が配列の配列であると仮定して、要素の配列でインデックス 1 の要素が obj に等しいものを検索し見つかった最初の要素を返 します。該当する要素がなければ nil を返します。
...を返
します。該当する要素がなければ nil を返します。
比較は == 演算子を使って行われます。
@param obj 検索するオブジェクトを指定します。
//emlist[例][ruby]{
a = [[15,1], [25,2], [35,3]]
p a.rassoc(2) # => [25, 2]
//}
@see Array#assoc... -
Array
# transpose -> Array (27307.0) -
自身を行列と見立てて、行列の転置(行と列の入れ換え)を行いま す。転置した配列を生成して返します。空の配列に対しては空の配列を生 成して返します。
...外
TypeError が発生します。各要素のサイズが不揃いな配列に対して
は、例外 IndexError が発生します。
//emlist[例][ruby]{
p [[1,2],
[3,4],
[5,6]].transpose
# => [[1, 3, 5], [2, 4, 6]]
p [].transpose
# => []
p [1,2,3].transpose
# => -:1:in `transpose': can......not convert Fixnum into Array (TypeError)
# from -:1
p [[1,2],
[3,4,5],
[6,7]].transpose
# => -:3:in `transpose': element size differ (3 should be 2) (IndexError)
//}... -
Array
. try _ convert(obj) -> Array | nil (27225.0) -
to_ary メソッドを用いて obj を配列に変換しようとします。
...to_ary メソッドを用いて obj を配列に変換しようとします。
何らかの理由で変換できないときには nil を返します。
このメソッドは引数が配列であるかどうかを調べるために使えます。
//emlist[例][ruby]{
Array.try_convert([1]) # =>......[1]
Array.try_convert("1") # => nil
if tmp = Array.try_convert(arg)
# the argument is an array
elsif tmp = String.try_convert(arg)
# the argument is a string
end
//}...