1804件ヒット
[1701-1800件を表示]
(0.112秒)
ライブラリ
- ビルトイン (721)
- delegate (12)
- digest (12)
- e2mmap (6)
-
irb
/ cmd / load (12) -
irb
/ xmp (12) - json (24)
-
minitest
/ unit (1) - mkmf (612)
- open-uri (24)
- openssl (24)
- pathname (12)
- pp (12)
- psych (24)
- rake (36)
-
rubygems
/ custom _ require (12) - scanf (12)
- shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - stringio (72)
- timeout (8)
- un (72)
- zlib (48)
クラス
-
ARGF
. class (75) - Array (48)
- BasicObject (24)
- Binding (12)
- Exception (24)
- IO (84)
-
IRB
:: ExtendCommand :: Load (12) - LoadError (12)
- Module (132)
- Object (144)
-
OpenSSL
:: BN (12) - Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - String (72)
- StringIO (72)
- SystemExit (12)
- Thread (72)
- TracePoint (12)
- UncaughtThrowError (22)
-
Zlib
:: GzipWriter (48)
モジュール
- Exception2MessageMapper (6)
- Kernel (836)
-
MiniTest
:: Assertions (1) -
OpenSSL
:: Buffering (12) -
OpenURI
:: OpenRead (24)
キーワード
- % (12)
- DelegateClass (12)
- Digest (12)
- JSON (12)
- Pathname (12)
- [] (18)
-
add
_ trace _ func (12) - ancestors (12)
- autoload (12)
-
cc
_ command (12) -
check
_ signedness (24) -
check
_ sizeof (24) - class (12)
-
class
_ eval (24) -
const
_ defined? (12) - constants (12)
-
convertible
_ int (24) - cp (12)
-
cpp
_ command (12) -
create
_ makefile (12) -
create
_ tmpsrc (12) -
defined
_ class (12) -
depend
_ rules (12) - desc (12)
-
egrep
_ cpp (24) - eval (12)
- exception (24)
- execute (12)
- exit (12)
-
find
_ executable (12) -
find
_ header (12) -
find
_ library (24) -
find
_ type (24) - freeze (12)
- gets (27)
-
have
_ header (24) -
have
_ macro (24) -
have
_ struct _ member (24) -
have
_ type (24) - help (12)
- hex (12)
- httpd (12)
- import (12)
- include (12)
- inspect (12)
- install (12)
-
install
_ files (12) -
instance
_ eval (24) -
instance
_ variables (12) - j (12)
- kill (12)
- libpathflag (12)
-
link
_ command (12) - method (12)
- mkdir (12)
-
module
_ eval (24) - namespace (12)
- oct (12)
- open (24)
- path (12)
-
pretty
_ print (24) - print (60)
- printf (60)
-
psych
_ y (12) -
public
_ instance _ method (12) - putc (36)
- puts (48)
- raise (12)
-
remove
_ const (12) - reopen (60)
- require (12)
- rmdir (12)
- sample (48)
- scanf (12)
- send (24)
-
set
_ trace _ func (12) - skip (1)
- status (12)
- tag (11)
- terminate (12)
- test (18)
- timeout (8)
-
to
_ a (12) -
to
_ ary (12) -
to
_ f (12) -
to
_ i (12) -
to
_ int (12) -
to
_ str (12) -
try
_ compile (24) -
try
_ constant (24) -
try
_ cpp (24) -
try
_ do (24) -
try
_ link (24) -
try
_ run (24) -
try
_ static _ assert (24) -
try
_ type (24) - value (11)
-
with
_ werror (24) - xmp (12)
- xpopen (24)
- xsystem (12)
- y (12)
検索結果
先頭5件
-
UncaughtThrowError
# tag -> object (23.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 (23.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 (19.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 を指定した(まだロードしてない)定... -
Object
# instance _ variables -> [Symbol] (19.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 (19.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... -
SystemExit
# status -> Integer (19.0) -
例外オブジェクトに保存された終了ステータスを返します。
...します。
終了ステータスは Kernel.#exit や SystemExit.new などで設定されます。
例:
begin
exit 1
rescue SystemExit => err
p err.status # => 1
end
begin
raise SystemExit.new(1, "dummy exit")
rescue SystemExit => err
p err.status # => 1
end... -
Object
# to _ ary -> Array (13.0) -
オブジェクトの Array への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...すべての場面で代置可能であるような、
* 配列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_ary
[3,4]
end
end
it = Foo.new
p([1,2] + it) #=> [1, 2, 3, 4]
//}
@see Object#to_a,Kernel.#Array... -
Object
# to _ int -> Integer (13.0) -
オブジェクトの Integer への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...が使われるすべての場面で代置可能であるような、
* 整数そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_int
1
end
end
ary = [:a, :b, :c]
p(ary[Foo.new]) # => :b
//}
@see Kernel.#Integer... -
Object
# to _ str -> String (13.0) -
オブジェクトの String への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...面で代置可能であるような、
* 文字列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_str
'Edition'
end
end
it = Foo.new
p('Second' + it) #=> "SecondEdition"
//}
@see Object#to_s,Kernel.#String...