ライブラリ
- English (4)
- ビルトイン (306)
- abbrev (1)
- benchmark (2)
- bigdecimal (1)
-
cgi
/ core (4) - coverage (1)
- csv (31)
- date (2)
- dbm (2)
- delegate (1)
- erb (1)
- expect (2)
- fileutils (12)
- getoptlong (2)
-
irb
/ inspector (1) - json (8)
- matrix (11)
- mkmf (3)
-
net
/ imap (5) - objspace (1)
- observer (2)
- open3 (9)
- openssl (6)
- optparse (16)
- ostruct (1)
- pathname (1)
- pp (2)
- pstore (1)
- psych (4)
- rake (28)
-
rake
/ rdoctask (2) -
rake
/ testtask (2) -
rdoc
/ context (1) -
rdoc
/ text (1) - readline (2)
-
rexml
/ document (3) -
rexml
/ parsers / pullparser (2) -
rexml
/ parsers / ultralightparser (1) -
rinda
/ rinda (3) -
rinda
/ tuplespace (4) - rubygems (3)
-
rubygems
/ command (5) -
rubygems
/ command _ manager (1) -
rubygems
/ commands / update _ command (1) -
rubygems
/ commands / which _ command (2) -
rubygems
/ dependency (1) -
rubygems
/ dependency _ installer (6) -
rubygems
/ dependency _ list (2) -
rubygems
/ ext / configure _ builder (1) -
rubygems
/ ext / ext _ conf _ builder (1) -
rubygems
/ ext / rake _ builder (1) -
rubygems
/ format (1) -
rubygems
/ indexer (2) -
rubygems
/ old _ format (1) -
rubygems
/ package / tar _ header (1) -
rubygems
/ platform (1) -
rubygems
/ requirement (2) -
rubygems
/ security (2) -
rubygems
/ source _ index (2) -
rubygems
/ source _ info _ cache (2) -
rubygems
/ spec _ fetcher (4) -
rubygems
/ specification (14) -
rubygems
/ user _ interaction (2) - shellwords (3)
- socket (17)
- tsort (4)
-
webrick
/ config (1) -
webrick
/ httprequest (2) -
webrick
/ https (1) -
webrick
/ httpserver (1) -
webrick
/ httputils (3) - win32ole (7)
- zlib (1)
クラス
-
ARGF
. class (5) - Array (160)
- BasicSocket (1)
-
Benchmark
:: Tms (1) - BigDecimal (1)
- CSV (15)
-
CSV
:: Row (3) -
CSV
:: Table (12) - Coverage (1)
- DBM (2)
- Data (1)
- Date (1)
- DateTime (1)
- ERB (1)
-
Encoding
:: Converter (3) - Enumerator (2)
-
Gem
:: Command (5) -
Gem
:: CommandManager (1) -
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: Commands :: WhichCommand (2) -
Gem
:: Dependency (1) -
Gem
:: DependencyInstaller (6) -
Gem
:: DependencyList (2) -
Gem
:: Ext :: ConfigureBuilder (1) -
Gem
:: Ext :: ExtConfBuilder (1) -
Gem
:: Ext :: RakeBuilder (1) -
Gem
:: Format (1) -
Gem
:: Indexer (2) -
Gem
:: OldFormat (1) -
Gem
:: Package :: TarHeader (1) -
Gem
:: Platform (1) -
Gem
:: Requirement (2) -
Gem
:: Security :: Policy (1) -
Gem
:: Security :: Signer (1) -
Gem
:: SourceIndex (2) -
Gem
:: SourceInfoCache (2) -
Gem
:: SpecFetcher (4) -
Gem
:: Specification (14) -
Gem
:: StreamUI (1) - GetoptLong (2)
- Hash (9)
- IO (4)
- IPSocket (3)
-
IRB
:: Inspector (1) -
JSON
:: Parser (1) -
JSON
:: State (4) - MatchData (6)
- Matrix (5)
- Method (4)
- Module (16)
-
Net
:: IMAP (1) -
Net
:: IMAP :: BodyTypeBasic (1) -
Net
:: IMAP :: BodyTypeMessage (1) -
Net
:: IMAP :: BodyTypeMultipart (1) -
Net
:: IMAP :: BodyTypeText (1) - NilClass (1)
- Object (12)
-
OpenSSL
:: BN (1) -
OpenSSL
:: X509 :: ExtensionFactory (3) - OpenStruct (1)
- OptionParser (12)
-
OptionParser
:: ParseError (4) - PStore (1)
- Pathname (1)
-
RDoc
:: Context (1) -
REXML
:: Element (1) -
REXML
:: Entity (2) -
REXML
:: Parsers :: PullEvent (2) -
REXML
:: Parsers :: UltraLightParser (1) -
Rake
:: Application (2) -
Rake
:: FileList (13) -
Rake
:: NameSpace (1) -
Rake
:: RDocTask (2) -
Rake
:: Task (5) -
Rake
:: TaskArguments (1) -
Rake
:: TestTask (2) - Random (3)
- Range (4)
- Rational (2)
- Regexp (2)
-
Rinda
:: TupleEntry (1) -
Rinda
:: TupleSpace (3) -
Rinda
:: TupleSpaceProxy (3) -
RubyVM
:: AbstractSyntaxTree :: Node (1) -
RubyVM
:: InstructionSequence (1) - Set (5)
- Socket (10)
-
Socket
:: Option (1) - String (4)
- Struct (3)
- TCPSocket (1)
- Time (2)
- UDPSocket (1)
- UnboundMethod (2)
- Vector (6)
-
WEBrick
:: HTTPRequest (3) -
WEBrick
:: HTTPServer :: MountTable (1) -
WEBrick
:: HTTPUtils :: FormData (2) - WIN32OLE (1)
-
WIN32OLE
_ VARIANT (5)
モジュール
- Benchmark (1)
-
CGI
:: QueryExtension (2) -
CGI
:: QueryExtension :: Value (2) - Enumerable (51)
- FileUtils (13)
-
GC
:: Profiler (1) - Gem (3)
-
Gem
:: UserInteraction (1) - JSON (2)
-
JSON
:: Generator :: GeneratorMethods :: Array (1) - Kernel (10)
- ObjectSpace (3)
- Observable (2)
- Open3 (9)
-
OpenSSL
:: SSL :: SocketForwarder (2) - Psych (4)
-
RDoc
:: Text (1) -
Rake
:: TaskManager (4) - Shellwords (2)
- TSort (4)
-
WEBrick
:: Config (1) -
WEBrick
:: HTTPUtils (1) -
WIN32OLE
:: VARIANT (1) - Warning (1)
- Zlib (1)
オブジェクト
-
Readline
:: HISTORY (2) - main (5)
キーワード
-
$ , (1) -
$ INPUT _ RECORD _ SEPARATOR (1) -
$ OFS (1) -
$ OUTPUT _ FIELD _ SEPARATOR (1) -
$ RS (1) - & (2)
- * (3)
- + (1)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (1) - << (1)
- <=> (1)
- == (3)
- === (1)
- =~ (1)
-
ARGUMENT
_ FLAGS (1) - ARGV (1)
-
ARRAY
_ METHODS (1) -
DEFAULT
_ IGNORE _ PATTERNS (1) -
DEFAULT
_ RAKEFILES (1) -
DELEGATING
_ METHODS (1) - DIRECTORIES (1)
- DelegateClass (1)
- DigestAuth (1)
- FIELDS (1)
- METHODS (1)
-
MUST
_ DEFINE (1) -
MUST
_ NOT _ DEFINE (1) - Marshal フォーマット (1)
-
NEWS for Ruby 2
. 0 . 0 (1) -
NEWS for Ruby 2
. 2 . 0 (1) -
NEWS for Ruby 2
. 3 . 0 (1) -
NEWS for Ruby 2
. 4 . 0 (1) -
NEWS for Ruby 3
. 1 . 0 (1) - ORDERINGS (1)
-
SPECIAL
_ RETURN (1) - TYPES (1)
-
VT
_ ARRAY (1) -
WIN
_ PATTERNS (1) - [] (17)
- []= (4)
-
_ invoke (1) - abbrev (1)
- accept (1)
-
accept
_ nonblock (1) - actions (1)
-
add
_ attributes (1) -
add
_ bindir (1) -
add
_ extra _ args (1) -
add
_ observer (1) -
add
_ to (1) - addr (3)
- all? (6)
- any? (4)
-
arg
_ names (1) - args (1)
-
array
_ attribute (1) -
array
_ attributes (1) -
array
_ nl (1) - at (1)
-
attribute
_ defaults (1) -
attribute
_ names (1) - bmbm (1)
- bsearch (4)
-
bsearch
_ index (2) - build (3)
- call (2)
- categories (1)
-
cert
_ chain (2) - children (1)
- chmod (1)
-
chmod
_ R (1) -
choose
_ from _ list (2) - chown (1)
-
chown
_ R (1) - cipher (1)
- class (1)
- coerce (4)
- collect (4)
- collect! (2)
- collect2 (2)
-
collect
_ concat (2) -
collect
_ method (1) -
column
_ vector (1) - combination (2)
- commands (1)
- compact (3)
- compact! (2)
-
compact
_ specs (1) - concat (3)
- converters (1)
- convpath (1)
- count (6)
-
crc
_ table (1) -
create
_ ext _ from _ array (1) -
create
_ extension (2) -
current
_ scope (1) - cycle (1)
-
deconstruct
_ keys (6) -
define
_ finalizer (2) - delete (2)
-
delete
_ at (1) -
delete
_ if (2) -
delete
_ observers (1) - dependencies (1)
-
dependent
_ gems (1) -
development
_ dependencies (1) - diagonal (1)
- difference (1)
- dig (4)
-
drop
_ while (4) - dump (2)
- each (2)
- each2 (2)
-
each
_ index (1) - empty? (2)
- entries (1)
-
enum
_ for (2) - eql? (2)
- expect (2)
- extension (4)
-
extra
_ args (1) - fcntl (1)
- fetch (4)
-
fetch
_ values (2) -
file
_ entries (2) - fill (2)
- filter (2)
- filter! (2)
-
filter
_ backtrace (1) -
find
_ command _ possibilities (1) -
find
_ gems _ with _ sources (1) -
find
_ index (3) -
find
_ matching (1) -
find
_ paths (1) -
find
_ spec _ by _ name _ and _ version (1) -
find
_ type (2) - first (4)
-
flat
_ map (2) - flatten (3)
- flatten! (2)
-
force
_ encoding (1) - freeze (1)
-
gather
_ dependencies (1) -
gem
_ file _ list (1) -
gem
_ paths (1) -
gems
_ to _ install (1) - generate (1)
-
generate
_ line (1) -
get
_ all _ gem _ names (1) - getaddrinfo (1)
- gethostbyaddr (1)
- gethostbyname (2)
- getnameinfo (1)
- gets (1)
- grep (2)
- hash (1)
-
header
_ converters (1) - headers (2)
- import (1)
-
in
_ namespace (1) - index (3)
- insert (1)
- inspect (1)
- install (1)
-
install
_ rb (1) -
installed
_ gems (1) - intersect? (1)
- intersection (2)
- ioctl (1)
-
is
_ a? (1) - join (2)
-
keep
_ if (2) -
keys
_ with _ inspector (1) -
kind
_ of? (1) - last (2)
-
latest
_ specs (1) -
legacy
_ repos (1) - length (3)
- libs (1)
-
line
_ stub (1) - list (3)
- makedirs (1)
- map (4)
- map! (2)
- map2 (1)
-
marshal
_ dump (1) - max (4)
-
max
_ by (4) - min (4)
-
min
_ by (4) - minmax (4)
-
mkdir
_ p (1) - mkpath (1)
-
module
_ function (3) - names (1)
- new (8)
-
next
_ values (1) - none? (2)
- on (12)
- one? (6)
-
option
_ list (1) - outdated (1)
- p (1)
- pack (2)
- pack テンプレート文字列 (1)
- pair (1)
- params (1)
- parse (5)
-
parse
_ line (1) - path (1)
-
pathmap
_ explode (1) -
peek
_ values (1) - peeraddr (3)
- permutation (2)
- pipeline (1)
-
pipeline
_ r (2) -
pipeline
_ rw (2) -
pipeline
_ start (2) -
pipeline
_ w (2) - pop (1)
- prerequisites (1)
-
pretty
_ print (1) -
pretty
_ print _ cycle (1) -
primitive
_ errinfo (1) - private (8)
-
private
_ class _ method (2) - product (2)
- protected (4)
- public (2)
-
public
_ class _ method (2) - rand (3)
-
rdoc
/ parser / c (1) -
reachable
_ objects _ from (1) - read (4)
-
read
_ all (2) - readline (1)
- readlines (4)
- recover (1)
- recvfrom (1)
-
recvfrom
_ nonblock (1) - reject (4)
- reject! (2)
-
remove
_ by _ name (1) -
repeated
_ combination (2) -
repeated
_ permutation (2) - replace (1)
-
required
_ attributes (1) - requirements (1)
-
resolve
_ args (1) -
response
_ handlers (1) - result (1)
-
reverse
_ each (2) - rindex (3)
- roots (1)
- rotate (1)
- rotate! (1)
-
row
_ vector (1) -
ruby 1
. 6 feature (1) -
ruby 1
. 8 . 2 feature (1) -
ruby 1
. 8 . 4 feature (1) -
ruby 1
. 9 feature (1) -
ruby
_ opts (1) -
runtime
_ dependencies (1) -
safe
_ load (2) - sample (2)
- scan (1)
-
search
_ convpath (1) -
search
_ with _ source (2) - select (3)
- select! (2)
- sendmsg (1)
-
set
_ backtrace (1) -
set
_ eoutvar (1) - shelljoin (2)
- shift (4)
- size (3)
- slice (1)
- slice! (2)
- socketpair (1)
- sort (2)
- sort! (2)
-
sort
_ by (2) -
sort
_ by! (2) - sources (1)
-
spec
_ predecessors (1) -
specific
_ extra _ args (1) - split (1)
-
split
_ all (1) -
split
_ header _ value (1) -
strongly
_ connected _ components (2) - sum (4)
- sysaccept (1)
- table (2)
- take (4)
-
take
_ while (4) - tap (1)
- tasks (3)
-
to
_ a (19) -
to
_ ary (5) -
to
_ csv (1) -
to
_ enum (2) -
to
_ h (3) -
to
_ hash (1) -
to
_ json (1) -
to
_ s (1) -
top
_ level _ tasks (1) - transpose (1)
-
try
_ convert (1) - tsort (3)
- union (2)
- uniq (2)
- uniq! (1)
- unpack (2)
- unpack1 (1)
-
unpack
_ sockaddr _ in (1) - unparse (1)
- unshift (1)
- value (1)
-
values
_ at (5) - vartype (1)
-
verify
_ gem (1) -
which
_ to _ update (1) - yaml (1)
- zip (2)
- | (1)
- パターンマッチ (1)
- リテラル (1)
- 制御構造 (1)
検索結果
先頭5件
-
NEWS for Ruby 2
. 4 . 0 (397.0) -
NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
NEWS for Ruby 2.4.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。
== 2.3.0 以降の変更
=== 言語仕様の変更
* 条件式での多重代入ができるようになりました 10617
* Symbol#to_proc でメソッド呼び出し元での Refinements が有効になりました 9451
* Ob... -
Enumerable
# all? -> bool (391.0) -
すべての要素が真である場合に true を返します。 偽である要素があれば、ただちに false を返します。
すべての要素が真である場合に true を返します。
偽である要素があれば、ただちに false を返します。
ブロックを伴う場合は、各要素に対してブロックを評価し、すべての結果
が真である場合に true を返します。ブロックが偽を返した時点で、
ただちに false を返します。
自身に要素が存在しない場合は true を返します。
@param pattern ブロックの代わりに各要素に対して pattern === item を評価します。
//emlist[例][ruby]{
require 'set'
# すべて正の数か?
p Set[5, 6, 7].all? {|... -
Enumerable
# one? -> bool (337.0) -
ブロックを指定しない場合は、 Enumerable オブジェクトの要素のうち ちょうど一つだけが真であれば、真を返します。 そうでなければ偽を返します。
ブロックを指定しない場合は、 Enumerable オブジェクトの要素のうち
ちょうど一つだけが真であれば、真を返します。
そうでなければ偽を返します。
ブロックを指定した場合は、Enumerable オブジェクトの要素を
ブロックで評価した結果、一つの要素だけが真であれば真を返します。
そうでなければ偽を返します。
@param pattern ブロックの代わりに各要素に対して pattern === item を評価します。
//emlist[例][ruby]{
require 'set'
Set['ant', 'bear', 'cat'].one? {|word| word.le... -
Enumerable
# one? {|obj| . . . } -> bool (337.0) -
ブロックを指定しない場合は、 Enumerable オブジェクトの要素のうち ちょうど一つだけが真であれば、真を返します。 そうでなければ偽を返します。
ブロックを指定しない場合は、 Enumerable オブジェクトの要素のうち
ちょうど一つだけが真であれば、真を返します。
そうでなければ偽を返します。
ブロックを指定した場合は、Enumerable オブジェクトの要素を
ブロックで評価した結果、一つの要素だけが真であれば真を返します。
そうでなければ偽を返します。
@param pattern ブロックの代わりに各要素に対して pattern === item を評価します。
//emlist[例][ruby]{
require 'set'
Set['ant', 'bear', 'cat'].one? {|word| word.le... -
Hash
. new(ifnone = nil) -> Hash (337.0) -
空の新しいハッシュを生成します。ifnone はキーに対 応する値が存在しない時のデフォルト値です。設定したデフォルト値はHash#defaultで参照できます。
空の新しいハッシュを生成します。ifnone はキーに対
応する値が存在しない時のデフォルト値です。設定したデフォルト値はHash#defaultで参照できます。
ifnoneを省略した Hash.new は {} と同じです。
デフォルト値として、毎回同一のオブジェクトifnoneを返します。
それにより、一箇所のデフォルト値の変更が他の値のデフォルト値にも影響します。
//emlist[][ruby]{
h = Hash.new([])
h[0] << 0
h[1] << 1
p h.default #=> [0, 1]
//}
これを避けるには、破壊的でないメソッドで再代入する... -
Hash
. new {|hash , key| . . . } -> Hash (307.0) -
空の新しいハッシュを生成します。ブロックの評価結果がデフォルト値になりま す。設定したデフォルト値はHash#default_procで参照できます。
空の新しいハッシュを生成します。ブロックの評価結果がデフォルト値になりま
す。設定したデフォルト値はHash#default_procで参照できます。
値が設定されていないハッシュ要素を参照するとその都度ブロックを
実行し、その結果を返します。
ブロックにはそのハッシュとハッシュを参照したときのキーが渡されます。
@raise ArgumentError ブロックと通常引数を同時に与えると発生します。
//emlist[例][ruby]{
# ブロックではないデフォルト値は全部同一のオブジェクトなので、
# 破壊的変更によって他のキーに対応する値も変更されます。
h = Hash.new... -
rdoc
/ parser / c (307.0) -
C 言語で記述されたソースコードから組み込みクラス/モジュールのドキュメン トを解析するためのサブライブラリです。
C 言語で記述されたソースコードから組み込みクラス/モジュールのドキュメン
トを解析するためのサブライブラリです。
C 言語で記述された拡張ライブラリなどを解析するのに使用します。
rb_define_class や rb_define_method などで定義されたものに
対応する C 言語の関数のコメントを解析します。
例: Array#flatten の場合。rb_ary_flatten のコメントが解析されます。
/*
* Returns a new array that is a one-dimensional flattening of this
* arra... -
NEWS for Ruby 2
. 2 . 0 (235.0) -
NEWS for Ruby 2.2.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
NEWS for Ruby 2.2.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリストは ChangeLog ファイルか bugs.ruby-lang.org の issue を参照してください。
== 2.1.0 以降の変更
=== 言語仕様の変更
* nil/true/false
* nil/true/false はフリーズされました 8923
* Hash リテラル
* 後ろにコロンのあるシンボルをキーにしたと...