4424件ヒット
[4201-4300件を表示]
(0.076秒)
種類
ライブラリ
- English (253)
- ビルトイン (2470)
- bigdecimal (14)
- continuation (11)
- delegate (11)
- digest (11)
- e2mmap (18)
-
irb
/ cmd / load (11) -
irb
/ xmp (22) - json (22)
-
minitest
/ unit (1) - mkmf (572)
- open-uri (74)
- open3 (22)
- openssl (22)
- pathname (22)
- pp (15)
- profiler (6)
- psych (22)
- pty (44)
- rake (33)
-
rubygems
/ custom _ require (11) - scanf (12)
- shell (12)
-
shell
/ command-processor (18) -
shell
/ filter (12) - socket (66)
- stringio (99)
- syslog (11)
- tempfile (50)
-
test
/ unit (1) - timeout (27)
- tracer (11)
- un (66)
- win32ole (11)
- zlib (44)
クラス
-
ARGF
. class (68) - Array (44)
- BasicObject (22)
- BigDecimal (2)
- Binding (11)
- Complex (22)
- Exception (22)
- File (33)
- IO (429)
-
IRB
:: ExtendCommand :: Load (11) - LoadError (11)
- Module (132)
- Object (154)
-
OpenSSL
:: BN (11) - Proc (18)
- Shell (12)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (12) - Socket (33)
- String (67)
- StringIO (99)
- SystemExit (11)
- Tempfile (50)
- Thread (66)
- TracePoint (11)
- Tracer (11)
- UncaughtThrowError (20)
-
WIN32OLE
_ EVENT (11) - XMP (11)
-
Zlib
:: GzipWriter (44)
モジュール
- Exception2MessageMapper (18)
- FileTest (11)
- Kernel (2272)
-
MiniTest
:: Assertions (1) - Open3 (22)
-
OpenSSL
:: Buffering (11) - OpenURI (22)
-
OpenURI
:: OpenRead (22) - PTY (44)
- Process (88)
-
Socket
:: Constants (33) - Syslog (11)
-
Test
:: Unit (1) - Timeout (19)
- URI (14)
キーワード
-
$ ! (11) -
$ & (11) -
$ & # 39; (11) -
$ -F (11) -
$ -I (5) -
$ -p (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ : (5) -
$ ; (11) -
$ > (11) -
$ ? (11) -
$ ARGV (11) -
$ CHILD _ STATUS (11) -
$ DEFAULT _ INPUT (11) -
$ DEFAULT _ OUTPUT (11) -
$ ERROR _ INFO (11) -
$ ERROR _ POSITION (11) -
$ FIELD _ SEPARATOR (11) -
$ FS (11) -
$ INPUT _ LINE _ NUMBER (11) -
$ INPUT _ RECORD _ SEPARATOR (11) -
$ LAST _ MATCH _ INFO (11) -
$ LAST _ PAREN _ MATCH (11) -
$ LAST _ READ _ LINE (11) -
$ LOAD _ PATH (11) -
$ MATCH (11) -
$ NR (11) -
$ OFS (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ PID (11) -
$ POSTMATCH (11) -
$ PREMATCH (11) -
$ PROCESS _ ID (11) -
$ PROGRAM _ NAME (11) -
$ RS (11) -
$ ` (11) -
$ stdin (11) -
$ stdout (11) -
$ topdir (11) -
$ ~ (11) - % (11)
-
AI
_ V4MAPPED _ CFG (22) - ARGF (11)
- Array (11)
- BigDecimal (12)
- Complex (33)
- Continuation (11)
- DATA (11)
- DelegateClass (11)
- Digest (11)
- Float (11)
- Integer (11)
- JSON (11)
-
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Pathname (22)
- Proc (11)
-
Profiler
_ _ (6) - Rational (6)
- Rubyの起動 (11)
-
SCRIPT
_ LINES _ _ (11) -
SO
_ ATTACH _ FILTER (22) -
SO
_ DETACH _ FILTER (22) - String (11)
- TracePoint (11)
- Win32ネイティブ版Rubyの互換性問題 (11)
- [] (18)
-
_ _ callee _ _ (11) -
_ _ method _ _ (11) - abort (22)
-
add
_ filter (11) -
add
_ trace _ func (11) - ancestors (11)
-
at
_ exit (11) - autoload (22)
- autoload? (11)
- bigdecimal (11)
- binding (11)
- binread (11)
- binwrite (11)
- caller (33)
-
caller
_ locations (22) - catch (22)
-
cc
_ command (11) -
check
_ signedness (22) -
check
_ sizeof (22) - chomp (11)
- chop (11)
- class (11)
-
class
_ eval (22) -
const
_ defined? (11) - constants (22)
-
convertible
_ int (22) - cp (11)
-
cpp
_ command (11) - create (20)
-
create
_ makefile (11) -
create
_ tmpsrc (11) -
def
_ exception (6) -
defined
_ class (11) -
depend
_ rules (11) - desc (11)
-
drb
/ extservm (11) -
egrep
_ cpp (22) - eval (33)
- exception (22)
- exec (44)
- execute (11)
- exit (22)
- exit! (11)
- fail (33)
-
find
_ executable (11) -
find
_ header (11) -
find
_ library (22) -
find
_ type (22) -
for
_ fd (11) - foreach (22)
- fork (22)
- format (11)
- freeze (11)
- getpty (22)
- gets (35)
-
global
_ variables (11) - gsub (33)
-
have
_ header (22) -
have
_ macro (22) -
have
_ struct _ member (22) -
have
_ type (22) - help (11)
- hex (11)
- httpd (11)
- identical? (11)
- import (11)
- include (11)
- inspect (11)
- install (11)
-
install
_ files (11) -
instance
_ eval (22) -
instance
_ variables (11) - irb (11)
-
irb
/ xmp (11) - j (11)
- kill (22)
- lambda (17)
- libpathflag (11)
-
link
_ command (11) - load (11)
-
local
_ variables (11) - log (11)
- loop (22)
- method (11)
- mkdir (11)
-
module
_ eval (22) - namespace (11)
- new (74)
- oct (11)
- open (160)
- open-uri (6)
-
open
_ uri (22) - p (11)
- path (11)
- popen (154)
- popen3 (22)
- pp (22)
-
pretty
_ print (22) - print (66)
- printf (77)
- proc (18)
-
psych
_ y (11) -
public
_ instance _ method (11) - putc (44)
- puts (55)
- raise (44)
-
rb
_ exec _ end _ proc (11) -
rb
_ load (11) - read (33)
- readline (11)
- readlines (44)
- rect (11)
- rectangular (11)
-
remove
_ const (11) - reopen (55)
- require (11)
-
require
_ relative (11) - rmdir (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
run
_ config (6) - sample (44)
- scanf (12)
- select (22)
- send (22)
-
set
_ trace _ func (22) -
setup
_ argv (1) - skip (1)
- sleep (22)
- spawn (77)
- sprintf (11)
- sprintf フォーマット (11)
- srand (22)
- status (11)
- sub (22)
- sysopen (11)
- system (44)
- tag (10)
- terminate (11)
- test (40)
- timeout (27)
-
to
_ a (11) -
to
_ ary (11) -
to
_ f (11) -
to
_ i (11) -
to
_ int (11) -
to
_ str (11) -
trace
_ var (33) - trap (22)
-
try
_ compile (22) -
try
_ constant (22) -
try
_ cpp (22) -
try
_ do (22) -
try
_ link (22) -
try
_ run (22) -
try
_ static _ assert (22) -
try
_ type (22) -
untrace
_ var (11) - value (10)
- warn (7)
-
webrick
/ https (11) -
webrick
/ httpservlet (11) -
with
_ werror (22) - write (22)
- xmp (11)
- xpopen (22)
- xsystem (11)
- y (11)
- このマニュアルのヘルプ (11)
- クラス/メソッドの定義 (11)
- セキュリティモデル (11)
- 制御構造 (11)
- 変数と定数 (11)
- 手続きオブジェクトの挙動の詳細 (11)
- 環境変数 (11)
- 終了処理 (11)
検索結果
先頭5件
-
NEWS for Ruby 2
. 4 . 0 (24.0) -
NEWS for Ruby 2.4.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...い。
== 2.3.0 以降の変更
=== 言語仕様の変更
* 条件式での多重代入ができるようになりました 10617
* Symbol#to_proc でメソッド呼び出し元での Refinements が有効になりました 9451
* Object#send や BasicObject#__send__ でメソッドを呼......#pack 12754
既にアロケートされているバッファを再利用するためにオプションキーワード引数 buffer: を取るようになりました。
* Array#sum 12217
Enumerable#sum と違って each メソッドに依存しません。
* Comparable
* Compa......rable#clamp を追加 10594
* Dir
* Dir.empty? を追加 10121
* Enumerable
* Enumerable#chunk ブロックを省略した場合 Enumerator を返すようになりました。2172
* Enumerable#sum を追加 12217
* Enumerable#uniq を追加 11090
* Enumerator::Lazy
* En... -
Object
# to _ a -> Array (24.0) -
オブジェクトを配列に変換した結果を返します。 デフォルトでは定義されていません。
...のメソッドは実際には Object クラスには定義されていません。
必要に応じてサブクラスで定義すべきものです。
//emlist[][ruby]{
p( {'a'=>1}.to_a ) # [["a", 1]]
p ['array'].to_a # ["array"]
p nil.to_a # []
//}
@see Object#to_ary,Kernel.#Array... -
UncaughtThrowError
# tag -> object (22.0) -
Kernel.#throw に指定した tag を返します。
...
Kernel.#throw に指定した tag を返します。
//emlist[例:][ruby]{
def do_complicated_things
throw :uncaught_label
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.tag # => ":uncaught_label"
end
//}... -
UncaughtThrowError
# value -> object (22.0) -
Kernel.#throw に指定した value を返します。
...
Kernel.#throw に指定した value を返します。
//emlist[例][ruby]{
def do_complicated_things
throw :uncaught_label, "uncaught_value"
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.value # => "uncaught_value"
end
//}... -
Module
# remove _ const(name) -> object (18.0) -
name で指定した定数を取り除き、その定数に設定されていた値を 返します。
...name で指定した定数を取り除き、その定数に設定されていた値を
返します。
@param name String または Symbol を指定します。
@return 引数で指定された定数に設定されていた値を返します。
@raise NameError 引数で指定された定数が......発生します。
//emlist[例][ruby]{
class Foo
FOO = 1
p remove_const(:FOO) # => 1
p FOO # => uninitialized constant FOO at Foo (NameError)
end
//}
組み込みクラス/モジュールを設定している定数や Kernel.#autoload を指定した(まだロードしてない)定... -
Module
. constants -> [Symbol] (18.0) -
このメソッドを呼び出した時点で参照可能な定数名の配列を返します。
...します。
//emlist[例][ruby]{
class C
FOO = 1
end
p Module.constants # => [:RUBY_PLATFORM, :STDIN, ..., :C, ...]
# 出力中に :FOO は現われない
//}
@see Module#constants, Kernel.#local_variables, Kernel.#global_variables, Object#instance_variables, Module#class... -
Object
# instance _ variables -> [Symbol] (18.0) -
オブジェクトのインスタンス変数名をシンボルの配列として返します。
...列として返します。
//emlist[][ruby]{
obj = Object.new
obj.instance_eval { @foo, @bar = nil }
p obj.instance_variables
#=> [:@foo, :@bar]
//}
@see Object#instance_variable_get, Kernel.#local_variables, Kernel.#global_variables, Module.constants, Module#constants, Module#class_variables... -
Object
# method(name) -> Method (18.0) -
オブジェクトのメソッド name をオブジェクト化した Method オブジェクトを返します。
...トを返します。
@param name メソッド名をSymbol またはStringで指定します。
@raise NameError 定義されていないメソッド名を引数として与えると発生します。
//emlist[][ruby]{
me = -365.method(:abs)
p me #=> #<Method: Integer#abs>
p me.call #=> 365
//}
@......see Module#instance_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#singleton_method... -
Object
:: DATA -> File (18.0) -
スクリプトの __END__ プログラムの終り以降をアクセスする File オブジェクト。
...スクリプトの __END__
プログラムの終り以降をアクセスする File オブジェクト。
d:spec/program#terminateも参照。
ソースファイルの __END__ 以降は解析・実行の対象にならないので
その部分にプログラムが利用するためのデータを......。
* Kernel.#require や Kernel.#load で
読み込まれたファイルの中であってもそのファイル (__FILE__, d:spec/variables#pseudo)
ではなく実行されたファイル ($0) を指します。
=== 例1
print DATA.gets # => 故人西辞黄鶴楼
print DATA.......gets # => 烟花三月下揚州
print DATA.gets # => 孤帆遠影碧空尽
print DATA.gets # => 唯見長江天際流
DATA.gets # => nil
__END__
故人西辞黄鶴楼
烟花三月下揚州
孤帆遠影碧空尽
唯見長江天際流
=== 例2
sum = 0... -
Socket
:: Constants :: SO _ ATTACH _ FILTER -> Integer (18.0) -
Attach socket filter。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。
...Attach socket filter。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。
@see socket(7linux), http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=Documentation/networking/filter.txt;hb=HEAD,
Socket::Constants::SOL_SOCKET...