種類
ライブラリ
- ビルトイン (1428)
- bigdecimal (11)
-
cgi
/ core (11) - csv (33)
- find (22)
- ipaddr (22)
-
irb
/ context (77) -
irb
/ inspector (77) -
irb
/ magic-file (11) - matrix (22)
-
minitest
/ spec (6) - monitor (11)
-
net
/ smtp (11) - openssl (22)
- optparse (11)
- ostruct (33)
- pp (22)
- psych (44)
- rake (66)
-
rake
/ gempackagetask (55) -
rdoc
/ context (11) -
rdoc
/ markup (11) -
rexml
/ document (22) -
rubygems
/ builder (11) -
rubygems
/ command (33) -
rubygems
/ commands / build _ command (11) -
rubygems
/ commands / dependency _ command (22) -
rubygems
/ commands / lock _ command (11) -
rubygems
/ commands / specification _ command (11) -
rubygems
/ commands / which _ command (11) -
rubygems
/ dependency _ installer (11) -
rubygems
/ dependency _ list (55) -
rubygems
/ doc _ manager (11) -
rubygems
/ exceptions (11) -
rubygems
/ format (22) -
rubygems
/ gem _ path _ searcher (66) -
rubygems
/ indexer (44) -
rubygems
/ installer (44) -
rubygems
/ old _ format (22) -
rubygems
/ package / tar _ input (22) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ require _ paths _ builder (11) -
rubygems
/ requirement (11) -
rubygems
/ server (22) -
rubygems
/ source _ index (154) -
rubygems
/ source _ info _ cache (22) -
rubygems
/ spec _ fetcher (154) -
rubygems
/ specification (1331) -
rubygems
/ uninstaller (77) -
rubygems
/ validator (11) - scanf (108)
- set (18)
-
shell
/ command-processor (6) -
shell
/ filter (6) - socket (132)
- strscan (11)
- sync (6)
- uri (22)
-
webrick
/ httputils (11) -
win32
/ registry (11) - win32ole (11)
- zlib (11)
クラス
-
ARGF
. class (44) - Addrinfo (33)
- Array (22)
- BasicObject (33)
- BigDecimal (11)
- Bignum (6)
- Binding (6)
- CGI (11)
- CSV (11)
-
CSV
:: Row (11) -
CSV
:: Table (11) - Complex (11)
- Data (4)
- Dir (11)
- Encoding (110)
-
Encoding
:: Converter (11) -
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Chain (6) - Exception (11)
- FalseClass (22)
- Fixnum (6)
- Float (22)
-
Gem
:: Builder (11) -
Gem
:: Command (33) -
Gem
:: Commands :: BuildCommand (11) -
Gem
:: Commands :: DependencyCommand (22) -
Gem
:: Commands :: LockCommand (11) -
Gem
:: Commands :: WhichCommand (11) -
Gem
:: DependencyInstaller (11) -
Gem
:: DependencyList (55) -
Gem
:: DocManager (11) -
Gem
:: Format (22) -
Gem
:: GemPathSearcher (66) -
Gem
:: Indexer (44) -
Gem
:: Installer (44) -
Gem
:: OldFormat (22) -
Gem
:: Package :: TarInput (22) -
Gem
:: RemoteFetcher (11) -
Gem
:: Requirement (11) -
Gem
:: Server (22) -
Gem
:: SourceIndex (154) -
Gem
:: SourceInfoCache (22) -
Gem
:: SpecFetcher (143) -
Gem
:: Specification (1320) -
Gem
:: Uninstaller (77) -
Gem
:: Validator (11) - Hash (22)
- IPAddr (22)
-
IRB
:: Context (77) -
IRB
:: Inspector (44) - Integer (22)
- MatchData (11)
- Matrix (11)
- Method (54)
-
MiniTest
:: Spec (5) - Module (129)
-
Net
:: SMTP (11) - Object (95)
-
OpenSSL
:: HMAC (11) - OpenStruct (33)
-
OptionParser
:: ParseError (11) - Proc (22)
-
Process
:: Status (11) -
RDoc
:: Context :: Section (11) -
RDoc
:: Markup (11) -
RDoc
:: Options (11) -
REXML
:: CData (11) -
REXML
:: Text (11) -
Rake
:: FileList (22) -
Rake
:: GemPackageTask (44) -
Rake
:: Task (11) -
Rake
:: TaskArguments (22) - Range (44)
- Rational (11)
- Regexp (22)
-
RubyVM
:: AbstractSyntaxTree :: Node (6) -
RubyVM
:: InstructionSequence (11) -
Scanf
:: FormatSpecifier (66) -
Scanf
:: FormatString (24) - Set (18)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Socket (33)
-
Socket
:: AncillaryData (22) -
Socket
:: Ifaddr (11) - String (34)
- StringScanner (11)
- Struct (22)
- Symbol (22)
- Thread (25)
-
Thread
:: Backtrace :: Location (11) - Time (5)
- TracePoint (11)
- TrueClass (11)
- UnboundMethod (22)
- Vector (11)
-
WIN32OLE
_ TYPE (11) -
Win32
:: Registry (11) -
Zlib
:: GzipFile :: Error (11)
モジュール
- Find (22)
-
Gem
:: RequirePathsBuilder (11) - IRB (11)
- Kernel (339)
- ObjectSpace (22)
-
OpenSSL
:: OCSP (11) - Signal (22)
-
Socket
:: Constants (33) -
Sync
_ m (6) - URI (22)
-
WEBrick
:: HTTPUtils (11)
オブジェクト
- ENV (11)
-
IRB
:: MagicFile (11) - main (22)
キーワード
-
$ -0 (11) -
$ -F (11) -
$ -I (11) -
$ -K (11) -
$ -W (11) -
$ -a (11) -
$ -d (11) -
$ -i (11) -
$ -l (11) -
$ -p (11) -
$ -v (11) -
$ -w (11) -
$ / (11) -
$ : (11) -
$ ; (11) -
$ > (11) -
$ DEBUG (11) -
$ KCODE (11) -
$ LOAD _ PATH (11) -
$ SAFE (7) -
$ VERBOSE (11) -
$ stdout (11) - === (38)
-
AF
_ UNSPEC (22) - ARGF (11)
- Alias (11)
-
CURRENT
_ SPECIFICATION _ VERSION (11) - DATA (11)
-
ENCODING
_ SPEC _ RE (11) - ENV (6)
- Encoding (11)
- FormatSpecifier (6)
- GemPackageTask (11)
- Hash (11)
-
INADDR
_ UNSPEC _ GROUP (22) - INSPECTORS (11)
-
ISO
_ 2022 _ JP _ KDDI (11) - InspectKey (11)
- Inspector (22)
- InvalidSpecificationException (11)
-
MARSHAL
_ FIELDS (11) - Mapping (11)
- MonitorMixin (11)
-
NONEXISTENT
_ SPECIFICATION _ VERSION (11) -
NO
_ INSPECTING _ IVARS (11) -
PF
_ UNSPEC (22) - Proc (11)
-
REVOKED
_ STATUS _ UNSPECIFIED (11) - Range (11)
- Regexp (11)
- Ruby プログラムの実行 (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Rubyの起動 (11)
- Ruby用語集 (11)
-
SJIS
_ KDDI (11) - SPECIAL (11)
-
SPECIAL
_ CONST _ P (11) -
SPECIAL
_ RETURN (11) -
SPECIFICATION
_ VERSION _ HISTORY (11) - SPECIFIERS (6)
-
STATELESS
_ ISO _ 2022 _ JP _ KDDI (11) - Scalar (11)
- SecurityError (9)
- Sequence (11)
- Spec (1)
- SpecFetcher (11)
- Specification (11)
- SpecificationCommand (11)
-
Stateless
_ ISO _ 2022 _ JP _ KDDI (11) - String (11)
- TODAY (11)
- Thread (11)
-
UTF8
_ KDDI (11) - [] (9)
-
_ _ inspect _ _ (11) -
_ dump (11) -
_ load (11) - ` (11)
- abbreviate (11)
-
accept
_ charset= (11) - add (11)
-
add
_ bindir (11) -
add
_ dependency (11) -
add
_ development _ dependency (11) -
add
_ runtime _ dependency (11) -
add
_ spec (11) -
add
_ special (11) -
add
_ specific _ extra _ args (11) -
add
_ specs (11) - after (1)
-
alias
_ method (11) -
array
_ attribute (11) -
array
_ attributes (11) -
ask
_ if _ ok (11) -
assign
_ defaults (11) -
at
_ exit (11) - attribute (11)
-
attribute
_ alias _ singular (11) -
attribute
_ defaults (11) -
attribute
_ names (11) - attributes (11)
- autorequire (11)
- autorequire= (11)
- before (1)
- bindir (11)
- bindir= (11)
-
cache
_ dir (11) - call (18)
-
cert
_ chain (11) -
cert
_ chain= (11) -
collect
_ specs (11) -
compact
_ specs (11) - conversion (6)
-
count
_ space? (6) - current (1)
- date (11)
- date= (11)
-
decode
_ www _ form (11) -
def
_ builtin _ commands (6) -
def
_ inspector (11) -
default
_ executable (11) -
default
_ executable= (11) -
default
_ external (11) -
default
_ external= (11) -
default
_ internal (11) -
default
_ internal= (11) -
default
_ value (11) -
define
_ finalizer (22) - dependencies (11)
-
dependencies
_ ok? (11) -
dependency
_ order (11) -
dependent
_ gems (11) -
deprecate
_ constant (5) - description (11)
- description= (11)
-
development
_ dependencies (11) - dir (11)
- download (11)
- email (11)
- email= (11)
-
encode
_ www _ form (11) - encoding (11)
-
ensure
_ dependency (11) - executable (11)
- executable= (11)
- executables (11)
- executables= (11)
- exit (11)
- extensions (11)
- extensions= (11)
-
extra
_ rdoc _ files (11) -
extra
_ rdoc _ files= (11) - fetch (11)
-
fetch
_ spec (11) - fetcher (11)
- fetcher= (11)
-
file
_ name (11) - files (11)
- files= (11)
- find (33)
-
find
_ all (11) -
find
_ matching (11) -
find
_ name (22) -
find
_ reverse _ dependencies (11) -
find
_ spec _ by _ name _ and _ version (11) -
from
_ gems _ in (11) -
from
_ yaml (11) -
full
_ gem _ path (11) -
full
_ name (11) -
gem
_ paths (11) -
gem
_ spec (11) -
gem
_ spec= (11) -
has
_ rdoc (11) -
has
_ rdoc= (11) -
has
_ rdoc? (11) -
has
_ test _ suite? (11) -
has
_ unit _ tests? (11) - homepage (11)
- homepage= (11)
- include? (11)
- init (22)
-
init
_ gemspecs (11) -
inplace
_ mode (11) -
inplace
_ mode= (11) - inspect (609)
- inspect? (11)
-
inspect
_ i (11) -
inspect
_ mode (11) -
inspect
_ mode= (11) -
inspect
_ obj (11) -
inspect
_ sockaddr (11) -
inspect
_ value (11) - install (11)
-
installation
_ path (11) -
installed
_ spec _ directories (11) -
instance
_ eval (22) -
ip
_ pktinfo (22) -
ipv6
_ unspecified? (11) -
irb
/ inspector (11) - it (1)
-
keys
_ with _ inspector (11) - lambda (17)
-
last
_ spec (6) -
last
_ spec _ tried (6) -
latest
_ specs (33) -
legacy
_ repos (11) - letter (6)
-
lib
_ dirs _ for (11) -
lib
_ files (11) - list (22)
- load (11)
-
load
_ gems _ in (11) -
load
_ gemspec (11) -
load
_ gemspecs (11) -
load
_ specification (11) -
load
_ specs (11) - loaded= (11)
- loaded? (11)
-
loaded
_ from (11) -
loaded
_ from= (11) -
mark
_ version (11) - match (6)
- matched (6)
-
matched
_ string (6) -
matching
_ file? (11) -
matching
_ files (11) - member? (11)
-
method
_ inspect (11) -
mid
_ match? (6) -
minitest
/ spec (11) - name (22)
- name= (11)
- new (89)
- normalize (11)
-
normalize
_ yaml _ input (11) -
original
_ name (11) -
original
_ platform (11) -
original
_ platform= (11) -
overwrite
_ accessor (11) -
parse
_ range _ header (11) -
path
_ ok? (11) - pathmap (22)
- platform (11)
- platform= (11)
-
pretty
_ inspect (11) -
pretty
_ print _ inspect (11) -
print
_ dependencies (11) - private (23)
- proc (18)
- protected (23)
- public (23)
-
rake
/ gempackagetask (11) -
rb
_ inspect (11) -
rb
_ obj _ inspect (11) -
rb
_ thread _ inspect (11) -
rb
_ time _ timespec _ new (9) -
rb
_ timespec _ now (9) -
re
_ string (6) -
read
_ only (11) - remove (11)
-
remove
_ by _ name (11) -
remove
_ executables (11) -
remove
_ spec (11) -
require
_ path (11) -
require
_ path= (11) -
require
_ paths (11) -
require
_ paths= (11) -
required
_ attribute (11) -
required
_ attribute? (11) -
required
_ attributes (11) -
required
_ ruby _ version (11) -
required
_ ruby _ version= (11) -
required
_ rubygems _ version (11) -
required
_ rubygems _ version= (11) - requirements (11)
- requirements= (11)
- rss (11)
-
ruby 1
. 8 . 4 feature (11) - rubygems (11)
-
rubygems
/ commands / contents _ command (11) -
rubygems
/ commands / specification _ command (11) -
rubygems
/ spec _ fetcher (11) -
rubygems
/ specification (11) -
rubygems
_ version (11) -
rubygems
_ version= (11) -
runtime
_ dependencies (11) -
safe
_ level (7) - sanitize (11)
-
satisfies
_ requirement? (11) - scanf (12)
- search (33)
- send (22)
-
signing
_ key (11) -
signing
_ key= (11) -
singleton
_ method _ undefined (11) -
source
_ location (6) - spec= (22)
-
spec
_ count (6) -
spec
_ dirs (11) -
spec
_ dirs= (11) -
spec
_ path (11) -
spec
_ predecessors (11) -
special
_ local _ set (11) - specific? (11)
-
specific
_ eval (11) -
specific
_ extra _ args (11) -
specific
_ extra _ args _ hash (11) - specification (11)
-
specification
_ version (11) -
specification
_ version= (11) - specs (22)
- summary (11)
- summary= (11)
-
sync
_ inspect (6) - taint (6)
- tainted? (6)
-
test
_ file (11) -
test
_ file= (11) -
test
_ files (11) -
test
_ files= (11) -
test
_ suite _ file (11) -
test
_ suite _ file= (11) -
to
_ proc (11) -
to
_ re (6) -
to
_ ruby (11) -
to
_ s (193) -
trace
_ var (33) - trap (22)
-
uninstall
_ gem (11) -
unit
_ test (11) - untaint (6)
- validate (11)
- version (11)
- version= (11)
-
warn
_ legacy (11) - width (6)
-
write
_ require _ paths _ file _ if _ needed (11) -
write
_ spec (11) - xmlrpc (3)
- yaml (11)
-
yaml
_ initialize (11) - はじめに (11)
- オブジェクト (11)
- オブジェクト指向スクリプト言語 Ruby リファレンスマニュアル (11)
- クラス (11)
- クラス/メソッドの定義 (11)
- コマンド (11)
- スレッド (11)
- セキュリティモデル (11)
- プログラム・文・式 (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- リテラル (11)
- 制御構造 (11)
- 変数と定数 (11)
- 多言語化 (11)
- 字句構造 (11)
- 手続きオブジェクトの挙動の詳細 (11)
- 正規表現 (11)
- 演算子式 (11)
- 環境変数 (11)
- 終了処理 (11)
検索結果
先頭5件
-
static VALUE specific
_ eval(int argc , VALUE *argv , VALUE klass , VALUE self) (26100.0) -
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。
rb_obj_instance_eval と rb_mod_module_eval を共通化するための補助関数です。 -
static void special
_ local _ set(char c , VALUE val) (26100.0) -
$~ と $_ をセットします。 現在は c=0 が $_ で c=1 が $~ です。
$~ と $_ をセットします。
現在は c=0 が $_ で c=1 が $~ です。 -
クラス/メソッドの定義 (23054.0)
-
クラス/メソッドの定義 * クラス/メソッドの定義: * class * singleton_class * module * method * operator * nest_method * eval_method * singleton_method * class_method * limit * 定義に関する操作: * alias * undef * defined
...ァベットの大文字で始まる識別子です。
rescue/ensure 節を指定し、例外処理ができます。
例外処理についてはd:spec/control#begin参照。
クラス定義は、識別子で指定した定数へのクラスの代入になります
(Ruby では、クラスもオ......たオブジェクトには引き継がれません.
rescue/ensure 節を指定し、例外処理ができます。
例外処理についてはd:spec/control#begin参照。
特異クラス定義式は、最後に評価した式の結果を返します。最後に評価した式
が値を返さ......ベットの大文字
で始まる識別子です。
rescue/ensure 節を指定し、例外処理ができます。
例外処理についてはd:spec/control#begin参照。
モジュール定義は、識別子で指定した定数へのモジュールの代入になります。
Ruby では、モ... -
メソッド呼び出し(super・ブロック付き・yield) (23042.0)
-
メソッド呼び出し(super・ブロック付き・yield) * super * block * yield * block_arg * numbered_parameters * call_method
...のメソッドを持つオブジェクトのメソッド定義式内でなければ呼び出せ
ません。d:spec/def#limit を参照して下さい。
ハッシュ式の解説(d:spec/literal#hash)にも書かれている通り、
メソッド呼出の末尾にHashを渡す場合は {, } を省......略することができます。
これを用いることでキーワード引数を渡すことができます。
この Hash はd:spec/def#methodで解説されているキーワード引数に
分解されて引き渡されます。
===[a:super] super
//emlist[例][ruby]{
super
super(1,2,3)
/......new)
# => 1
# 2
# 3
//}
ブロック付きメソッドの戻り値は、通常のメソッドと同様ですが、ブロックの中から
d:spec/control#break により中断された場合は nil を返します。
break に引数を指定した場合はその値がブロック付きメソ......略することができます。
これを用いることでキーワード引数を渡すことができます。
この Hash はd:spec/def#methodで解説されているキーワード引数に
分解されて引き渡されます。
メソッド呼び出しで `.' の代わりに `&.' を使う... -
プログラム・文・式 (23036.0)
-
プログラム・文・式 * exp * terminate
...(1+2)*3
foo()
if test then ok else ng end
Ruby の式には、spec/variables、さまざまなspec/literal、それらの
spec/operator、if や while などのspec/control、spec/call、
spec/defがあります。
式は括弧によってグルーピングすることがで... -
制御構造 (23030.0)
-
制御構造 条件分岐: * if * unless * case 繰り返し: * while * until * for * break * next * redo * retry 例外処理: * raise * begin その他: * return * BEGIN * END
...の右辺に置くと
syntax error になります)。
RubyはC言語やPerlから引き継いだ制御構造を持ちますが、
その他にd:spec/call#blockという
制御構造の抽象化を援助する機能があります。ブロック付きメソッド呼び出しは
繰り返しを始......おいて文が存在しなかったときの値
はnilです。いずれにしてもensure節の値は無視されます。
d:spec/def#class、d:spec/def#module、d:spec/def#method
などの定義文では、それぞれ
begin なしで rescue, ensure 節を定義でき、これにより例外を......。END ブロックで指定した文はインタ
プリタが終了する時に実行されます。Ruby の終了時処理について詳しくは
spec/terminateを参照してください。
複数の END ブロックを登録した場合は、登録したときと逆の順序で実
行されま... -
リテラル (23018.0)
-
リテラル * num * string * backslash * exp * char * command * here * regexp * array * hash * range * symbol * percent
...name is #{myname}/o
%r|Ruby|
//}
/で囲まれた文字列は正規表現です。正規表現として解釈される
メタ文字についてはspec/regexpを参照してください。
終りの/の直後の文字は正規表現に対するオプションになります。
オプションの......ッシュ式は評価されるたびに毎回新しいハッシュオブジェクトを生成します。
===[a:range] 範囲オブジェクト
d:spec/operator#rangeを参照
範囲式はその両端が数値リテラルであれば、何度評価されても同じオブジェク
トを返しま......は一対一に対応します。
Symbol リテラルに指定できる演算子はメソッドとして再定義できる演算子だ
けです。spec/operator を参照して下さい。
以下の記法も使えます。
//emlist[][ruby]{
p :'foo-bar' #=> :"foo-bar"
p :"foo-bar" #=> :"foo-bar"......とができます。
//emlist[][ruby]{
expected_result = <<~SQUIGGLY_HEREDOC
This would contain specially formatted text.
That might span many lines
SQUIGGLY_HEREDOC
# => "This would contain specially formatted text.\n" + "\n" + "That might span many lines\n"
//}
最もインデントが少... -
コマンド (23012.0)
-
コマンド Ruby では以下のコマンドが提供されます。
...かれた Ruby のドキュメントをコマンドラインから閲覧するツール。
: ruby
Ruby 本体。d:spec/rubycmd#ruby を参照。
: testrb
ユニットテスト実行ツール
これらのコマンドは以下で説明される環境変数を参照します。
* spec/envvars......ツール。rdoc を参照。
: ri
RDoc で書かれた Ruby のドキュメントをコマンドラインから閲覧するツール。
: ruby
Ruby 本体。d:spec/rubycmd#ruby を参照。
これらのコマンドは以下で説明される環境変数を参照します。
* spec/envvars... -
スレッド (23012.0)
-
スレッド スレッドとはメモリ空間を共有して同時に実行される制御の流れです。 Ruby ではスレッドはThread クラスのインスタンスとして表されます。
...グモード)
ruby インタプリタを -d オプション 付きで起動した場合も同様。
(オプションの詳細に関してはspec/rubycmd を参照)
* Thread.abort_on_exception でフラグを設定する。
* Thread#abort_on_exception で指定
したスレッドの......。
メインスレッドの終了時の詳細に関しては spec/terminate を参照して下さい。
=== スレッドの状態
個々のスレッドは、以下の実行状態を持ちます。これらの状態は
Object#inspect や
Thread#status によって見ることができます。... -
正規表現 (23012.0)
-
正規表現 * metachar * expansion * char * anychar * string * str * quantifier * capture * grouping * subexp * selector * anchor * cond * option * encoding * comment * free_format_mode * absenceop * list * specialvar * references
...capture
* grouping
* subexp
* selector
* anchor
* cond
* option
* encoding
* comment
* free_format_mode
* absenceop
* list
* specialvar
* references
正規表現(regular expression)は文字列のパターンを記述するための言語です。
また、この言語で......Ruby の文法で特別な意味を持つ文字を埋め込む
ためなどに用いられます。
文字列リテラルの記法とほぼ同様(d:spec/literal#backslash)で、
以下の記法が利用可能です。
\t 水平タブ horizontal tab (0x09)
\v 垂......エンコーディングが非互換で
ある場合、Encoding::CompatibilityError が発生します。
エンコーディングについては spec/m17n も参考にしてください。
Regexp#fixed_encoding? で正規表現のエンコーディングが
「固定」さているかどうかを...