別のキーワード
種類
ライブラリ
- English (44)
- ビルトイン (3600)
- abbrev (11)
- benchmark (22)
- bigdecimal (11)
-
cgi
/ core (44) - coverage (6)
- csv (407)
- dbm (22)
- delegate (11)
- erb (11)
- expect (22)
- fileutils (132)
- getoptlong (22)
-
irb
/ inspector (11) - json (121)
- logger (11)
- matrix (121)
-
minitest
/ unit (7) - mkmf (44)
-
net
/ imap (55) - objspace (11)
- observer (22)
- open3 (99)
- openssl (66)
- optparse (176)
- ostruct (9)
- pathname (11)
- pp (22)
- profiler (6)
- pstore (11)
- psych (39)
- rake (319)
-
rake
/ rdoctask (22) -
rake
/ testtask (22) -
rdoc
/ context (11) -
rdoc
/ text (11) - readline (33)
-
rexml
/ document (66) -
rexml
/ parsers / pullparser (22) -
rexml
/ parsers / ultralightparser (11) -
rinda
/ rinda (33) -
rinda
/ tuplespace (44) - rubygems (33)
-
rubygems
/ command (66) -
rubygems
/ command _ manager (22) -
rubygems
/ commands / build _ command (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ commands / update _ command (11) -
rubygems
/ commands / which _ command (22) -
rubygems
/ config _ file (11) -
rubygems
/ dependency (11) -
rubygems
/ dependency _ installer (66) -
rubygems
/ dependency _ list (22) -
rubygems
/ doc _ manager (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
/ indexer (22) -
rubygems
/ old _ format (11) -
rubygems
/ package / tar _ header (11) -
rubygems
/ platform (11) -
rubygems
/ requirement (22) -
rubygems
/ security (22) -
rubygems
/ source _ index (22) -
rubygems
/ source _ info _ cache (22) -
rubygems
/ spec _ fetcher (44) -
rubygems
/ specification (154) -
rubygems
/ user _ interaction (22) -
rubygems
/ version (22) - scanf (36)
- set (55)
- shell (36)
-
shell
/ command-processor (6) -
shell
/ filter (6) -
shell
/ process-controller (18) - shellwords (33)
- socket (187)
- thwait (6)
- tsort (44)
-
webrick
/ config (11) -
webrick
/ httprequest (22) -
webrick
/ https (11) -
webrick
/ httpserver (11) -
webrick
/ httputils (33) -
win32
/ registry (11) - win32ole (77)
- zlib (22)
クラス
-
ARGF
. class (77) - Array (2049)
- BasicSocket (11)
-
Benchmark
:: Tms (11) - BigDecimal (11)
-
CGI
:: Cookie (11) - CSV (165)
-
CSV
:: Row (66) -
CSV
:: Table (132) - Complex (11)
- Coverage (6)
- DBM (22)
- Data (4)
- ERB (11)
-
Encoding
:: Converter (33) - Enumerator (22)
-
Gem
:: Command (66) -
Gem
:: CommandManager (22) -
Gem
:: Commands :: BuildCommand (11) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: Commands :: UpdateCommand (11) -
Gem
:: Commands :: WhichCommand (22) -
Gem
:: ConfigFile (11) -
Gem
:: Dependency (11) -
Gem
:: DependencyInstaller (66) -
Gem
:: DependencyList (22) -
Gem
:: DocManager (11) -
Gem
:: Ext :: ConfigureBuilder (11) -
Gem
:: Ext :: ExtConfBuilder (11) -
Gem
:: Ext :: RakeBuilder (11) -
Gem
:: Format (11) -
Gem
:: GemPathSearcher (22) -
Gem
:: Indexer (22) -
Gem
:: OldFormat (11) -
Gem
:: Package :: TarHeader (11) -
Gem
:: Platform (11) -
Gem
:: Requirement (22) -
Gem
:: Security :: Policy (11) -
Gem
:: Security :: Signer (11) -
Gem
:: SourceIndex (22) -
Gem
:: SourceInfoCache (22) -
Gem
:: SpecFetcher (44) -
Gem
:: Specification (154) -
Gem
:: StreamUI (11) -
Gem
:: Version (22) - GetoptLong (22)
- Hash (113)
- IO (56)
- IPSocket (33)
-
IRB
:: Inspector (11) -
JSON
:: Parser (11) -
JSON
:: State (55) - Logger (11)
- MatchData (55)
- Matrix (55)
- Method (40)
-
MiniTest
:: Unit (2) -
MiniTest
:: Unit :: TestCase (2) - Module (76)
-
Net
:: IMAP (11) -
Net
:: IMAP :: BodyTypeBasic (11) -
Net
:: IMAP :: BodyTypeMessage (11) -
Net
:: IMAP :: BodyTypeMultipart (11) -
Net
:: IMAP :: BodyTypeText (11) - NilClass (11)
- Object (136)
-
OpenSSL
:: BN (11) -
OpenSSL
:: X509 :: ExtensionFactory (33) - OpenStruct (9)
- OptionParser (132)
-
OptionParser
:: ParseError (44) - PStore (11)
- Pathname (11)
-
RDoc
:: Context (11) -
REXML
:: Element (11) -
REXML
:: Entity (22) -
REXML
:: Parent (33) -
REXML
:: Parsers :: PullEvent (22) -
REXML
:: Parsers :: UltraLightParser (11) -
Rake
:: Application (22) -
Rake
:: FileList (143) -
Rake
:: NameSpace (11) -
Rake
:: RDocTask (22) -
Rake
:: Task (55) -
Rake
:: TaskArguments (11) -
Rake
:: TestTask (22) - Random (55)
- Range (34)
- Rational (22)
- Regexp (22)
-
Rinda
:: TupleEntry (11) -
Rinda
:: TupleSpace (33) -
Rinda
:: TupleSpaceProxy (33) -
RubyVM
:: AbstractSyntaxTree :: Node (6) -
RubyVM
:: InstructionSequence (11) - Set (55)
- Shell (36)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) -
Shell
:: ProcessController (18) - Socket (110)
-
Socket
:: Option (11) - String (53)
- Struct (20)
- TCPSocket (11)
- ThreadsWait (6)
- Time (11)
- UDPSocket (11)
- UnboundMethod (22)
- Vector (66)
-
WEBrick
:: HTTPRequest (33) -
WEBrick
:: HTTPServer :: MountTable (11) -
WEBrick
:: HTTPUtils :: FormData (22) - WIN32OLE (11)
-
WIN32OLE
_ VARIANT (55) -
Win32
:: Registry (11) -
Zlib
:: GzipReader (11)
モジュール
- Benchmark (11)
-
CGI
:: QueryExtension (22) -
CGI
:: QueryExtension :: Value (22) - Enumerable (591)
- FileUtils (143)
-
GC
:: Profiler (11) - Gem (33)
-
Gem
:: UserInteraction (11) - JSON (22)
-
JSON
:: Generator :: GeneratorMethods :: Array (11) - Kernel (144)
- MiniTest (1)
-
MiniTest
:: Assertions (2) - ObjectSpace (33)
- Observable (22)
- Open3 (99)
-
OpenSSL
:: SSL :: SocketForwarder (22) - Psych (39)
-
RDoc
:: Text (11) -
Rake
:: TaskManager (44) - Shellwords (22)
- TSort (44)
-
WEBrick
:: Config (11) -
WEBrick
:: HTTPUtils (11) -
WIN32OLE
:: VARIANT (11) - Zlib (11)
オブジェクト
- ENV (22)
-
Readline
:: HISTORY (22) - main (32)
キーワード
-
$ , (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ OFS (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ RS (11) - & (22)
- * (33)
- + (11)
- - (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (22)
- <=> (11)
- == (33)
- === (7)
- =~ (15)
-
ARGUMENT
_ FLAGS (11) - ARGV (11)
-
ARRAY
_ METHODS (11) - ArgumentError (11)
- CSV (11)
-
DEFAULT
_ IGNORE _ PATTERNS (11) -
DEFAULT
_ RAKEFILES (11) -
DELEGATING
_ METHODS (11) - DIRECTORIES (11)
- DelegateClass (11)
- DigestAuth (11)
- Enumerable (11)
- Enumerator (11)
- FIELDS (11)
- FileList (11)
- FrozenError (7)
- HISTORY (11)
- Hash (11)
- METHODS (11)
-
MUST
_ DEFINE (11) -
MUST
_ NOT _ DEFINE (11) - Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - ORDERINGS (11)
-
Profiler
_ _ (6) - RARRAY (11)
- Row (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
-
SEV
_ LABEL (11) -
SPECIAL
_ RETURN (11) - TYPES (11)
- Table (11)
-
VT
_ ARRAY (11) -
WIN
_ PATTERNS (11) - [] (209)
- []= (88)
-
_ invoke (11) - abbrev (11)
- accept (11)
-
accept
_ nonblock (11) - actions (11)
-
active
_ jobs (6) -
add
_ attributes (11) -
add
_ bindir (11) -
add
_ extra _ args (11) -
add
_ observer (11) -
add
_ to (11) - addr (33)
- all? (36)
- any? (56)
- append (7)
-
arg
_ names (11) - args (22)
- argv (11)
- array (11)
-
array
_ attribute (11) -
array
_ attributes (11) -
array
_ nl (11) -
array
_ nl= (11) -
assert
_ send (1) - assoc (33)
- at (11)
-
attribute
_ defaults (11) -
attribute
_ names (11) - bmbm (11)
- bsearch (44)
-
bsearch
_ index (18) - build (33)
-
build
_ args (11) - call (22)
-
capture
_ io (1) -
cert
_ chain (22) - children (6)
- chmod (11)
-
chmod
_ R (11) -
choose
_ from _ list (22) - chown (11)
-
chown
_ R (11) - cipher (11)
- class (11)
- clear (11)
- clone (11)
- coerce (44)
- collect (44)
- collect! (22)
- collect2 (22)
-
collect
_ concat (22) -
collect
_ method (11) -
column
_ vector (11) - combination (22)
-
command
_ names (11) - commands (11)
- compact (22)
- compact! (19)
-
compact
_ specs (11) - concat (30)
-
configured
_ args (11) - converters (11)
- convpath (11)
- count (66)
-
crc
_ table (11) -
create
_ ext _ from _ array (11) -
create
_ extension (22) -
current
_ scope (11) - cycle (22)
- deconstruct (2)
-
deconstruct
_ keys (2) -
default
_ system _ path (6) -
default
_ system _ path= (6) -
define
_ finalizer (22) - delete (22)
-
delete
_ at (11) -
delete
_ if (22) -
delete
_ observers (11) -
depend
_ rules (11) - dependencies (11)
-
dependent
_ gems (11) -
development
_ dependencies (11) - diagonal (11)
- difference (6)
- dig (36)
- drop (22)
-
drop
_ while (44) - dump (22)
- dup (11)
- each (22)
- each2 (22)
-
each
_ index (22) - empty? (22)
- entries (6)
-
enum
_ for (22) - eql? (22)
- expect (22)
- extension (44)
-
extra
_ args (11) - fcntl (11)
- fetch (44)
-
fiddle
/ import (11) - fields (11)
-
file
_ entries (22) - fill (66)
- filter (12)
- filter! (12)
-
filter
_ backtrace (12) - find (11)
-
find
_ all (11) -
find
_ command _ possibilities (11) -
find
_ gems _ with _ sources (11) -
find
_ index (33) -
find
_ matching (11) -
find
_ paths (11) -
find
_ reverse _ dependencies (11) -
find
_ spec _ by _ name _ and _ version (11) -
find
_ type (22) - first (44)
-
flat
_ map (22) - flatten (33)
- flatten! (22)
-
force
_ encoding (11) - freeze (11)
-
gather
_ dependencies (11) -
gem
_ file _ list (11) -
gem
_ paths (11) -
gems
_ to _ install (11) - generate (11)
-
generate
_ line (11) -
get
_ all _ gem _ names (11) - getaddrinfo (11)
- gethostbyaddr (11)
- gethostbyname (22)
- getnameinfo (11)
- gets (11)
- grep (22)
- hash (11)
-
header
_ converters (11) - headers (33)
- import (11)
-
in
_ namespace (11) - include? (11)
- index (33)
- insert (11)
- inspect (11)
- install (11)
-
install
_ rb (11) -
installed
_ gems (11) - intersect? (3)
- intersection (16)
- ioctl (11)
-
is
_ a? (11) - jobs (12)
- join (22)
-
keep
_ if (22) -
keys
_ with _ inspector (11) -
kind
_ of? (11) - last (22)
-
latest
_ specs (11) -
legacy
_ repos (11) - length (33)
- libs (11)
-
line
_ stub (6) - list (33)
-
load
_ gemspecs (11) - makedirs (11)
- map (44)
- map! (22)
- map2 (11)
-
mark
_ locations _ array (11) -
marshal
_ dump (44) -
marshal
_ load (22) - max (76)
-
max
_ by (44) - min (76)
-
min
_ by (44) - minmax (20)
- mkdir (18)
-
mkdir
_ p (11) - mkpath (11)
-
module
_ function (12) - names (11)
- new (121)
-
next
_ values (11) - none? (36)
- on (132)
- one? (36)
-
option
_ list (11) - outdated (11)
- p (11)
- pack (19)
- pack テンプレート文字列 (11)
- pair (11)
- params (11)
- parse (55)
-
parse
_ line (11) - path (11)
-
pathmap
_ explode (11) -
peek
_ values (11) - peeraddr (33)
- permutation (22)
- pipeline (11)
-
pipeline
_ r (22) -
pipeline
_ rw (22) -
pipeline
_ start (22) -
pipeline
_ w (22) - pop (22)
- prepend (7)
- prerequisites (11)
-
pretty
_ print (11) -
pretty
_ print _ cycle (11) -
primitive
_ errinfo (11) - private (32)
-
private
_ class _ method (8) - product (22)
- profile (6)
- protected (16)
- public (32)
-
public
_ class _ method (8) - push (11)
- rand (33)
- rassoc (33)
-
rb
_ Array (11) -
rb
_ ary _ new (11) -
rb
_ ary _ new2 (11) -
rb
_ ary _ new3 (11) -
rb
_ ary _ to _ s (11) -
rb
_ check _ convert _ type (11) -
rb
_ f _ array (11) -
rdoc
/ parser / c (11) -
reachable
_ objects _ from (11) - read (44)
-
read
_ all (22) - readline (11)
- readlines (66)
- recover (11)
- recvfrom (11)
-
recvfrom
_ nonblock (11) - reject (44)
- reject! (22)
-
remove
_ by _ name (11) -
repeated
_ combination (22) -
repeated
_ permutation (22) - replace (11)
- report (1)
-
required
_ attributes (11) - requirements (11)
-
resolve
_ args (11) -
response
_ handlers (11) - result (11)
- reverse (11)
- reverse! (11)
-
reverse
_ each (22) - rindex (33)
- roots (11)
- rotate (11)
- rotate! (11)
- row (11)
-
row
_ vector (11) - rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
ruby
_ opts (11) -
run
_ test _ suites (1) -
runtime
_ dependencies (11) -
safe
_ load (17) - sample (44)
- scan (11)
- scanf (36)
-
search
_ convpath (11) -
search
_ with _ source (22) - select (33)
- select! (22)
- sendmsg (11)
- set (11)
-
set
_ backtrace (11) -
set
_ eoutvar (11) - shelljoin (22)
- shellwords (11)
- shift (44)
- shuffle (22)
- shuffle! (22)
- size (33)
- slice (33)
- slice! (33)
- socketpair (11)
- sort (22)
- sort! (22)
-
sort
_ by (22) -
sort
_ by! (22) - sources (11)
-
spec
_ predecessors (11) -
specific
_ extra _ args (11) - split (11)
-
split
_ all (11) -
split
_ header _ value (11) -
strongly
_ connected _ components (22) - sum (38)
- sysaccept (11)
-
system
_ path (6) -
system
_ path= (6) - table (22)
- take (44)
-
take
_ while (44) - tap (11)
- tasks (33)
-
test
_ methods (1) -
test
_ suites (1) - threads (6)
-
to
_ a (204) -
to
_ ary (55) -
to
_ csv (11) -
to
_ enum (22) -
to
_ h (28) -
to
_ hash (11) -
to
_ json (11) -
to
_ s (11) -
top
_ level _ tasks (11) - transpose (11)
-
try
_ convert (11) - tsort (33)
- union (17)
- uniq (44)
- uniq! (22)
- unpack (22)
- unpack1 (8)
-
unpack
_ sockaddr _ in (11) - unparse (11)
- unshift (11)
- value (22)
-
values
_ at (55) - vartype (11)
-
verify
_ gem (11) -
waiting
_ jobs (6) -
which
_ to _ update (11) - yaml (11)
- zip (22)
- | (11)
- このマニュアルのヘルプ (11)
- クラス/メソッドの定義 (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- リテラル (11)
- 制御構造 (11)
検索結果
先頭5件
-
Array
# shift(n) -> Array (21119.0) -
配列の先頭の要素を取り除いてそれを返します。 引数を指定した場合はその個数だけ取り除き、それを配列で返します。
...@raise ArgumentError 引数に負の数を指定した場合に発生します。
//emlist[例][ruby]{
a = [0, 1, 2, 3, 4]
p a.shift #=> 0
p a #=> [1, 2, 3, 4]
p [].shift #=> nil
p [].shift(1) #=> []
//}
@see Array#push, Array#pop, Array#unshift... -
Array
. [](*item) -> Array (21119.0) -
引数 item を要素として持つ配列を生成して返します。
...す。
Array のサブクラスを作成したしたときに、そのサブクラスのインスタンスを作成
しやすくするために用意されている。
@param item 配列の要素を指定します。
//emlist[例][ruby]{
Array[1, 2, 3] #=> [1, 2, 3]
class SubArray < Array
# .........
end
p SubArray[1, 2, 3] # => [1, 2, 3]
//}... -
Array
. new(size) {|index| . . . } -> Array (21119.0) -
長さ size の配列を生成し、各要素のインデックスを引数としてブロックを実行し、 各要素の値をブロックの評価結果に設定します。
...aram size 配列の長さを数値で指定します。
//emlist[例][ruby]{
ary = Array.new(3){|index| "hoge#{index}"}
p ary #=> ["hoge0", "hoge1", "hoge2"]
//}
//emlist[例][ruby]{
ary = Array.new(3){ "foo" }
p ary #=> ["foo", "foo", "foo"]
ary[0].capita... -
Array
. new(size = 0 , val = nil) -> Array (21114.0) -
長さ size の配列を生成し、各要素を val で初期化して返します。
...。
@param size 配列の長さを数値で指定します。
@param val 配列の要素の値を指定します。
//emlist[例][ruby]{
ary = Array.new(3, "foo")
p ary #=> ["foo", "foo", "foo"]
ary[0].capitalize!
p ary #=> ["Foo", "Foo", "Foo"] (各要素... -
Array
# &(other) -> Array (21113.0) -
集合の積演算です。両方の配列に含まれる要素からなる新しい配列を返 します。重複する要素は取り除かれます。
...る暗黙の型変換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 1, 2, 3] & [3, 1, 4] #=> [1, 3]
//}
@see Array#|, Array#intersection... -
Array
# drop(n) -> Array (21113.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
# |(other) -> Array (21113.0) -
集合の和演算です。両方の配列にいずれかに含まれる要素を全て含む新し い配列を返します。重複する要素は取り除かれます。
...暗黙の型変換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 1, 4, 2, 3] | [5, 4, 5] #=> [1, 4, 2, 3, 5]
//}
@see Array#&
@see Array#union... -
Array
# concat(*other _ arrays) -> self (21109.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
# first(n) -> Array (21108.0) -
先頭の n 要素を配列で返します。n は 0 以上でなければなりません。
...指定した場合に発生します。
@raise ArgumentError n が負値の場合発生します。
//emlist[例][ruby]{
ary = [0, 1, 2]
p ary.first(0)
p ary.first(1)
p ary.first(2)
p ary.first(3)
p ary.first(4)
# => []
# [0]
# [0, 1]
# [0, 1, 2]
# [0, 1, 2]
//}
@see Array#last... -
Array
# last(n) -> Array (21108.0) -
末尾の n 要素を配列で返します。n は 0 以上でなければなりません。
...指定した場合に発生します。
@raise ArgumentError n が負値の場合発生します。
//emlist[例][ruby]{
ary = [0, 1, 2]
p ary.last(0)
p ary.last(1)
p ary.last(2)
p ary.last(3)
p ary.last(4)
# => []
# [2]
# [1, 2]
# [0, 1, 2]
# [0, 1, 2]
//}
@see Array#first... -
Array
# shuffle -> Array (21108.0) -
配列の要素をランダムシャッフルして,その結果を配列として返します。
...ことができます。
//emlist[例][ruby]{
a = [ 1, 2, 3 ] #=> [1, 2, 3]
a.shuffle #=> [2, 3, 1]
rng = Random.new
rng2 = rng.dup # RNGを複製
# 以下の2つは同じ結果を返す
[1,2,3].shuffle(random: rng)
[1,2,3].shuffle(random: rng2)
//}
@see Array#shuffle!...