8680件ヒット
[1-100件を表示]
(0.206秒)
クラス
-
ARGF
. class (297) - Array (931)
- BasicObject (11)
- Bignum (3)
- Class (33)
- Complex (13)
- Data (2)
- Dir (149)
- Encoding (44)
-
Encoding
:: Converter (99) - Enumerator (67)
-
Enumerator
:: ArithmeticSequence (41) -
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (33) - Exception (66)
- FalseClass (33)
- Fiber (48)
- File (110)
-
File
:: Stat (132) - Float (38)
- Hash (377)
- IO (861)
- Integer (25)
- LoadError (11)
- MatchData (136)
- Method (31)
- Module (250)
- Mutex (2)
- NameError (17)
- NilClass (83)
- NoMethodError (17)
- Numeric (84)
- Object (213)
-
ObjectSpace
:: WeakMap (11) - Proc (24)
-
Process
:: Status (33) - Random (2)
- Range (161)
- Rational (11)
- Regexp (118)
-
RubyVM
:: AbstractSyntaxTree :: Node (6) -
RubyVM
:: InstructionSequence (97) - String (711)
- Struct (45)
- Symbol (148)
- SystemCallError (11)
- Thread (172)
-
Thread
:: ConditionVariable (9) -
Thread
:: Mutex (9) -
Thread
:: Queue (72) -
Thread
:: SizedQueue (36) - Time (135)
- TracePoint (32)
- TrueClass (33)
- UnboundMethod (21)
モジュール
- Comparable (65)
- Enumerable (562)
- FileTest (33)
- GC (49)
-
GC
:: Profiler (55) - Kernel (1036)
- Marshal (22)
- ObjectSpace (11)
- Process (117)
-
Process
:: Sys (110) -
RubyVM
:: AbstractSyntaxTree (24) - Signal (31)
- Warning (21)
キーワード
- ! (11)
- !~ (11)
-
$ ! (11) -
$ & (11) -
$ & # 39; (11) -
$ + (11) -
$ , (11) -
$ -0 (11) -
$ -F (11) -
$ -K (11) -
$ -W (11) -
$ -i (11) -
$ -v (11) -
$ -w (11) -
$ / (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 5 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ ; (11) -
$ ? (11) -
$ @ (11) -
$ KCODE (11) -
$ VERBOSE (11) -
$ \ (11) -
$ _ (11) -
$ ` (11) -
$ ~ (11) - & (33)
- < (22)
- <= (22)
- <=> (129)
- =~ (48)
- > (22)
- >= (22)
-
ALT
_ SEPARATOR (11) - Array (11)
- Comparable (11)
- Complex (12)
- ConditionVariable (9)
- DATA (11)
- Enumerator (11)
- FALSE (8)
- FalseClass (11)
- Fiber (11)
- Float (11)
- Hash (11)
- IO (11)
- Integer (11)
- Queue (9)
- Range (11)
- Rational (11)
- Stat (11)
- String (11)
- TRUE (8)
- [] (247)
- []= (44)
- ^ (33)
-
_ _ callee _ _ (11) -
_ _ dir _ _ (11) -
_ _ method _ _ (11) - abort (10)
-
absolute
_ path (22) -
add
_ trace _ func (11) - advise (11)
- any? (43)
-
asciicompat
_ encoding (22) - assoc (33)
- at (11)
- attr (24)
-
attr
_ accessor (8) -
attr
_ reader (8) -
attr
_ writer (8) - autoload (22)
- autoload? (22)
- backtrace (11)
-
backtrace
_ locations (22) - begin (27)
- between? (11)
- binding (2)
- binread (11)
- binwrite (11)
- blksize (11)
- blocks (11)
- bsearch (44)
-
bsearch
_ index (18) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- byteslice (33)
-
callee
_ id (11) - caller (33)
-
caller
_ locations (22) - capitalize! (11)
- captures (11)
- casecmp (22)
- casecmp? (16)
- cause (11)
- children (6)
- chomp! (11)
- chop! (11)
- chown (22)
- chunk (11)
- clamp (10)
- clear (20)
- clone (11)
- close (40)
-
close
_ read (11) -
close
_ write (11) - closed? (20)
- compact (3)
- compact! (19)
-
compare
_ by _ identity (11) - compatible? (11)
- compile (22)
-
compile
_ file (11) -
compile
_ option= (11) -
const
_ source _ location (5) -
copy
_ stream (22) - cycle (44)
- daemon (11)
-
deconstruct
_ keys (2) - default (22)
- default= (11)
-
default
_ external (11) -
default
_ internal (11) -
default
_ proc (11) -
default
_ proc= (11) - delete (66)
- delete! (11)
-
delete
_ at (11) -
delete
_ if (66) -
delete
_ prefix! (7) -
delete
_ suffix! (7) - deq (18)
- detach (11)
- detect (22)
-
dev
_ major (11) -
dev
_ minor (11) - dig (27)
- disable (11)
- disasm (11)
- disassemble (11)
- display (11)
- downcase! (11)
- dup (11)
- each (110)
-
each
_ child (28) -
each
_ cons (16) -
each
_ line (132) -
each
_ slice (16) - enable (11)
- encode (33)
- encode! (22)
- end (17)
-
enum
_ for (22) - errno (11)
- eval (22)
-
eval
_ script (6) - exception (11)
- exitstatus (11)
-
external
_ encoding (11) - fail (33)
- fcntl (11)
- feed (11)
- fetch (40)
- fill (66)
- filter! (36)
- find (22)
-
find
_ index (66) - first (67)
-
fixed
_ encoding? (11) - flatten (11)
- flatten! (11)
-
for
_ fd (11) - foreach (66)
- fork (44)
- ftype (11)
-
garbage
_ collect (22) - getbyte (33)
- getc (22)
- gets (77)
- glob (22)
- gm (22)
- gsub! (44)
- hash (11)
- home (22)
- index (58)
- infinite? (27)
- inject (33)
-
inplace
_ mode (11) -
insert
_ output (11) - inspect (27)
-
instance
_ variable _ get (11) -
instance
_ variables (11) -
internal
_ encoding (22) - ioctl (11)
- join (33)
-
keep
_ if (66) - key (22)
-
keyword
_ init? (3) - lambda (17)
- lambda? (11)
- last (23)
-
last
_ error (11) -
last
_ match (22) -
last
_ status (7) -
latest
_ gc _ info (22) - lchown (11)
- length (20)
- lines (64)
- load (11)
- local (22)
-
locale
_ charmap (11) - loop (22)
- lstrip! (11)
- match (55)
- match? (24)
- max (102)
-
max
_ by (44) -
method
_ id (11) - min (102)
-
min
_ by (44) - minmax (32)
-
minmax
_ by (22) - mktime (22)
-
module
_ function (12) - name (11)
-
named
_ captures (11) - names (11)
- new (297)
-
next
_ values (11) - nil? (11)
- none? (47)
- nonzero? (11)
- now (11)
- of (8)
- offset (22)
- one? (47)
- open (22)
- pack (19)
- parameters (2)
- parse (8)
-
parse
_ file (8) - pass (11)
- path (11)
-
peek
_ values (11) -
pending
_ interrupt? (22) - pid (11)
- pop (29)
- popen (154)
-
primitive
_ convert (44) -
primitive
_ errinfo (11) - print (11)
- printf (22)
- private (32)
- proc (18)
- produce (5)
- protected (16)
- public (28)
- puts (11)
- raise (48)
- rand (22)
- rassoc (22)
- rationalize (22)
-
raw
_ data (11) -
raw
_ seed (2) -
rdev
_ major (11) -
rdev
_ minor (11) - read (66)
-
read
_ nonblock (22) - readline (77)
- readlines (110)
- readpartial (11)
- realdirpath (11)
- realpath (11)
- reduce (33)
- rehash (22)
- reject (22)
- reject! (66)
- report (11)
- restore (11)
- resume (11)
- rindex (44)
- round (27)
- rstrip! (11)
-
ruby2
_ keywords (5) - sample (44)
- select (22)
- select! (66)
- self (2)
-
set
_ backtrace (11) -
set
_ encoding _ by _ bom (5) -
set
_ trace _ func (22) - setegid (11)
- seteuid (11)
- setgid (11)
- setregid (11)
- setresgid (11)
- setresuid (11)
- setreuid (11)
- setrgid (11)
- setrlimit (22)
- setruid (11)
- setuid (11)
- shift (51)
- signame (9)
-
singleton
_ class (11) - size (54)
- size? (33)
- sleep (11)
- slice (154)
- slice! (99)
- sort (22)
- sort! (22)
-
source
_ location (33) - spawn (44)
- split (17)
- squeeze! (11)
- start (11)
- status (11)
- step (54)
- stop (11)
- stopsig (11)
- store (11)
- strip! (11)
- sub! (33)
-
super
_ method (20) - superclass (11)
- swapcase! (11)
- sysread (11)
- system (44)
- termsig (11)
- test (22)
- then (12)
-
thread
_ variable _ get (11) - throw (11)
-
to
_ a (55) -
to
_ binary (9) -
to
_ c (11) -
to
_ enum (22) -
to
_ i (11) -
to
_ s (27) - tr! (11)
-
tr
_ s! (11) -
trace
_ var (33) - trap (44)
-
try
_ convert (58) - ungetbyte (11)
- ungetc (11)
- uniq (11)
- uniq! (22)
- unpack (11)
-
untrace
_ var (11) - upcase! (11)
- utc (22)
-
values
_ at (44) -
verify
_ compaction _ references (5) - wait (20)
- wait2 (11)
- waitpid (11)
- waitpid2 (11)
- warn (27)
-
world
_ readable? (33) -
world
_ writable? (33) - write (22)
- yield (11)
-
yield
_ self (14) - zip (55)
- | (33)
- ~ (11)
検索結果
先頭5件
-
Object
:: NIL -> NilClass (29237.0) -
非推奨です。 nil と同じ。
...非推奨です。 nil と同じ。
この定数は過去との互換性のために提供されています。擬似変数 nil を使ってください。
Ruby では false と nil が偽として扱われます。
偽でない値(false でも nil でもない値) は全て真とみなされま... -
GC
. verify _ compaction _ references(toward: nil , double _ heap: nil) -> Hash (20410.0) -
コンパクションの参照の一貫性を検証します。
...系依存 (CRuby 特有) です。
コンパクション中に移動されたオブジェクトは T_MOVED オブジェクトに置き換えられます。
コンパクション後には T_MOVED を参照するオブジェクトは存在するべきではありません。
この関数は全ての......MOVED への参照をもつオブジェクトがあれば、マークスタックにプッシュされて、
SEGV が起きるでしょう。
@param toward nil か :empty を指定します。
@param double_heap ヒープサイズを2倍にするかどうかを真偽値で指定します。
@retur......n GC.compact の返り値と同じです。
@see GC.compact... -
Enumerator
:: ArithmeticSequence # end -> Numeric | nil (20203.0) -
末項(終端)を返します。
...末項(終端)を返します。
@see Enumerator::ArithmeticSequence#begin... -
Encoding
:: Converter . asciicompat _ encoding(encoding) -> Encoding | nil (17422.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...コーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同じ文字集合を持つ ASCII 互換エンコ......ングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #=> #<Encoding:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
Exception
. exception(error _ message = nil) -> Exception (17340.0) -
例外オブジェクトを生成して返します。
...@param error_message エラーメッセージを表す文字列を指定します。このメッセージは
属性 Exception#message の値になり、デフォルトの例外ハンドラで表示されます。
//emlist[例][ruby]{
e = Exception.new("some message")
p e......# => #<Exception: some message>
p e.message # => "some message"
//}
//emlist[例][ruby]{
e = Exception.exception("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}... -
Kernel
. # Integer(arg , base = 0 , exception: true) -> Integer | nil (17327.0) -
引数を整数(Fixnum,Bignum)に変換した結果を返します。
...に対しては arg.to_int, arg.to_i を
この順に使用して変換します。
@param arg 変換対象のオブジェクトです。
@param base 基数として0か2から36の整数を指定します(引数argに文字列を指
定した場合のみ)。省略するか0を指定......です。
@param exception false を指定すると、変換できなかった場合、
例外を発生する代わりに nil を返します。
@raise ArgumentError 整数と見なせない文字列を引数に指定した場合に発生します。
@raise TypeError メソッド......ntegerのサブクラス)を返さなかった場合に発生します。
@raise TypeError 引数に nil を指定した場合に発生します。
//emlist[例][ruby]{
p Integer(4) #=> 4
p Integer(4_000) #=> 4000
p Integer(9.88) #=> 9
p Integer(nil) # can't convert nil... -
Kernel
. # caller _ locations(start = 1 , length = nil) -> [Thread :: Backtrace :: Location] | nil (17327.0) -
現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。
...ムを Thread::Backtrace::Location の配列で返します。引
数で指定した値が範囲外の場合は nil を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得するフレームの個数を指定します。
@param range 取得......Range オブジェクトを指定します。
//emlist[例][ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end
def test2(start, length)
test1(start, length)
end
def test3(start, length)
test2(s......t, length)
end
caller_locations # => []
test3(1, nil)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'", "/Users/user/test.rb:17:in `<main>'"]
# => [9, 13, 17]
# => ["/Users/user/test.rb", "/Users/user/test.rb", "/Users/user/test.rb"]
test3(1, 2)
# => ["/Users/user/test.... -
Encoding
:: Converter . asciicompat _ encoding(string) -> Encoding | nil (17322.0) -
同じ文字集合を持つ ASCII 互換エンコーディングを返します。
...コーディングを返します。
@param string エンコーディング名
@param encoding エンコーディングオブジェクト
@return ASCII 互換エンコーディングのオブジェクトか nil
引数とエンコーディングと同じ文字集合を持つ ASCII 互換エンコ......ングでない場合は nil を返します。
//emlist[][ruby]{
Encoding::Converter.asciicompat_encoding("ISO-2022-JP") #=> #<Encoding:stateless-ISO-2022-JP>
Encoding::Converter.asciicompat_encoding("UTF-16BE") #=> #<Encoding:UTF-8>
Encoding::Converter.asciicompat_encoding("UTF-8") #=> nil
//}... -
Object
# instance _ variable _ get(var) -> object | nil (17315.0) -
オブジェクトのインスタンス変数の値を取得して返します。
... nil を返します。
@param var インスタンス変数名を文字列か Symbol で指定します。
//emlist[][ruby]{
class Foo
def initialize
@foo = 1
end
end
obj = Foo.new
p obj.instance_variable_get("@foo") #=> 1
p obj.instance_variable_get(:@foo) #=> 1
p obj.instance_v......ariable_get(:@bar) #=> nil
//}
@see Object#instance_variable_set,Object#instance_variables,Object#instance_variable_defined?... -
ObjectSpace
. # garbage _ collect(full _ mark: true , immediate _ sweep: true) -> nil (17303.0) -
どこからも参照されなくなったオブジェクトを回収します。 GC.start と同じです。
...ー GC を動作させる場合は false を、そうでない場
合は true を指定します。
@param immediate_sweep sweep を遅らせる(Lazy Sweep を行う)場合は false
を、そうでない場合は true を指定します。
注意: これら......数は Ruby の実装やバージョンによって異なりま
す。将来のバージョンとの互換性も保証されません。また、Ruby の実装がサポー
トしていない場合はキーワード引数を指定しても無視される可能性があります。
@see GC.start... -
Exception
. new(error _ message = nil) -> Exception (17240.0) -
例外オブジェクトを生成して返します。
...@param error_message エラーメッセージを表す文字列を指定します。このメッセージは
属性 Exception#message の値になり、デフォルトの例外ハンドラで表示されます。
//emlist[例][ruby]{
e = Exception.new("some message")
p e......# => #<Exception: some message>
p e.message # => "some message"
//}
//emlist[例][ruby]{
e = Exception.exception("some message")
p e # => #<Exception: some message>
p e.message # => "some message"
//}...