8020件ヒット
[1-100件を表示]
(0.155秒)
ライブラリ
- ビルトイン (8020)
クラス
-
ARGF
. class (121) - Array (691)
- BasicObject (154)
- Bignum (99)
- Binding (78)
- Class (11)
- Complex (52)
- Dir (33)
- Encoding (22)
-
Encoding
:: Converter (110) -
Encoding
:: InvalidByteSequenceError (77) - Enumerator (55)
-
Enumerator
:: ArithmeticSequence (18) -
Enumerator
:: Chain (12) -
Enumerator
:: Lazy (137) -
Enumerator
:: Yielder (22) - Exception (51)
- Fiber (32)
- File (10)
-
File
:: Stat (253) - Fixnum (84)
- Float (40)
- FrozenError (5)
- Hash (316)
- IO (345)
- Integer (251)
- KeyError (7)
- LocalJumpError (11)
- MatchData (37)
- Method (75)
- Module (437)
- Mutex (2)
- NameError (18)
- NilClass (33)
- NoMethodError (8)
- Numeric (170)
- Object (501)
-
ObjectSpace
:: WeakMap (11) - Proc (24)
-
Process
:: Status (33) - Random (11)
- Range (158)
- Rational (43)
- Regexp (66)
-
RubyVM
:: AbstractSyntaxTree :: Node (36) -
RubyVM
:: InstructionSequence (119) - StopIteration (11)
- String (933)
- Struct (54)
- Symbol (310)
- SystemExit (11)
- Thread (223)
-
Thread
:: Backtrace :: Location (77) -
Thread
:: ConditionVariable (27) -
Thread
:: Mutex (9) -
Thread
:: Queue (9) -
Thread
:: SizedQueue (61) - Time (154)
- TracePoint (133)
- UnboundMethod (97)
モジュール
- Comparable (19)
- Enumerable (1002)
- GC (11)
キーワード
- ! (11)
- != (11)
- % (17)
- & (6)
- * (6)
- ** (17)
- + (17)
- - (6)
- -@ (3)
-
/ (6) - < (25)
- << (48)
- <= (25)
- <=> (25)
- == (89)
- === (47)
- =~ (20)
- > (25)
- >= (25)
- >> (17)
- [] (211)
- []= (11)
- ^ (17)
-
_ _ id _ _ (11) -
_ _ send _ _ (22) -
_ dump (11) -
abort
_ on _ exception (11) -
abort
_ on _ exception= (11) - abs (47)
- abs2 (22)
-
absolute
_ path (22) -
alias
_ method (3) - alive? (14)
- all? (17)
- allbits? (7)
- any? (21)
- anybits? (7)
- arity (22)
-
ascii
_ compatible? (11) -
ascii
_ only? (11) - assoc (11)
- at (11)
-
attr
_ writer (3) - autoclose= (11)
- autoclose? (11)
- backtrace (22)
-
backtrace
_ locations (33) -
base
_ label (22) - begin (28)
- between? (22)
- bind (11)
-
bind
_ call (10) - binding (22)
- binmode (22)
- binmode? (22)
- birthtime (21)
-
bit
_ length (17) - blksize (11)
- blockdev? (11)
- blocks (11)
- broadcast (9)
- bsearch (44)
-
bsearch
_ index (18) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (47)
- bytesize (11)
- byteslice (33)
- bytesplice (6)
-
callee
_ id (11) - capitalize (11)
- casecmp (11)
- casecmp? (16)
- chain (6)
- chardev? (11)
- chars (11)
- children (6)
-
chunk
_ while (19) - clamp (8)
-
class
_ eval (11) -
class
_ variable _ defined? (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) -
class
_ variables (11) -
close
_ on _ exec= (11) -
close
_ on _ exec? (11) - closed? (11)
- codepoints (11)
- collect (22)
-
collect
_ concat (33) - combination (22)
- compact! (8)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) -
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
- convert (11)
- count (44)
- curry (21)
- cycle (44)
- default (22)
-
define
_ method (22) -
define
_ singleton _ method (22) - delete (22)
-
delete
_ at (11) - deq (9)
-
destination
_ encoding (11) -
destination
_ encoding _ name (11) - detect (22)
- dig (27)
- digits (11)
- directory? (11)
- disable (22)
- disasm (11)
- disassemble (11)
- display (11)
- div (6)
- divmod (3)
- downcase (8)
-
drop
_ while (22) - dst? (11)
- dummy? (11)
- dump (11)
- each (6)
-
each
_ byte (44) -
each
_ char (11) -
each
_ codepoint (11) -
each
_ cons (11) -
each
_ grapheme _ cluster (7) -
each
_ pair (33) -
each
_ slice (22) -
each
_ with _ index (22) -
each
_ with _ object (22) - empty? (18)
- enable (22)
- enabled? (11)
- encode (33)
- encoding (11)
-
end
_ with? (16) - enq (9)
- entries (17)
-
enum
_ for (22) - eof (11)
- eof? (11)
- eql? (47)
- equal? (11)
-
error
_ bytes (11) - eval (22)
- even? (17)
- event (11)
-
exclude
_ end? (6) - executable? (11)
-
executable
_ real? (11) -
exit
_ value (11) - exited? (11)
- fdiv (3)
- feed (11)
- fetch (18)
- file? (11)
- filter (42)
- filter! (24)
-
filter
_ map (10) - find (22)
-
find
_ all (22) -
find
_ index (33) - finish (11)
- finite? (27)
- first (55)
-
first
_ column (6) -
first
_ lineno (17) -
fixed
_ encoding? (11) -
flat
_ map (33) - friday? (11)
-
garbage
_ collect (11) - getbyte (33)
- getc (11)
- gmt? (11)
-
grapheme
_ clusters (7) - grep (11)
-
grep
_ v (11) -
group
_ by (22) - grpowned? (11)
- gsub (44)
- gsub! (44)
- hash (47)
- id2name (11)
-
ignore
_ deadlock (3) -
ignore
_ deadlock= (3) - include? (66)
-
incomplete
_ input? (11) - index (7)
- inherited (11)
- initialize (11)
-
initialize
_ copy (11) - inject (33)
- insert (11)
-
insert
_ output (11) - inspect (105)
-
instance
_ eval (22) -
instance
_ exec (11) -
instance
_ method (11) -
instance
_ methods (11) -
instance
_ of? (11) -
instance
_ variable _ defined? (11) -
instance
_ variable _ get (11) -
instance
_ variable _ set (11) -
instance
_ variables (11) -
instruction
_ sequence (6) - integer? (11)
- intern (22)
- intersect? (3)
- intersection (5)
- invert (11)
- irb (8)
-
is
_ a? (11) - isatty (11)
- isdst (11)
- itself (11)
-
keep
_ if (44) - key (7)
-
kind
_ of? (11) - label (22)
- last (11)
-
last
_ column (6) -
last
_ lineno (6) - length (11)
- lineno (11)
- lineno= (22)
-
local
_ variable _ defined? (11) -
local
_ variable _ get (11) -
local
_ variable _ set (11) -
local
_ variables (19) - magnitude (58)
- map (22)
- match (44)
- match? (8)
- max (60)
-
max
_ by (44) - member? (17)
-
method
_ defined? (11) -
method
_ id (11) -
method
_ missing (11) - methods (11)
- min (118)
-
min
_ by (44) - minmax (42)
-
minmax
_ by (22) -
module
_ eval (11) -
module
_ function (4) - modulo (6)
- monday? (11)
- name (15)
- negative? (26)
- next (11)
- next! (11)
- nil? (22)
- nobits? (7)
- nonzero? (11)
-
object
_ id (11) - oct (11)
- odd? (17)
-
original
_ name (22) - owned? (11)
- pack (19)
- parameters (8)
- partition (22)
- path (22)
-
pending
_ interrupt? (11) - permutation (11)
- pipe? (11)
- pop (20)
- pos= (11)
- positive? (26)
- pow (22)
- pread (7)
-
primitive
_ convert (44) - priority (11)
- priority= (11)
- private (23)
-
private
_ call? (8) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
private
_ methods (11) - protected (4)
-
protected
_ instance _ methods (11) -
protected
_ method _ defined? (11) -
protected
_ methods (11) - public (23)
-
public
_ class _ method (15) -
public
_ constant (11) -
public
_ instance _ method (11) -
public
_ instance _ methods (11) -
public
_ method (11) -
public
_ method _ defined? (11) -
public
_ methods (11) -
public
_ send (22) - push (9)
- putback (22)
- putc (11)
- puts (11)
- raise (26)
- rassoc (11)
- read (11)
-
read
_ nonblock (22) - readable? (11)
-
readable
_ real? (11) -
readagain
_ bytes (11) - readbyte (22)
- readpartial (22)
- real? (11)
- receiver (42)
- reduce (33)
- reject (33)
- remainder (3)
-
remove
_ class _ variable (11) -
remove
_ instance _ variable (11) -
repeated
_ combination (22) - replacement= (11)
-
report
_ on _ exception (8) -
report
_ on _ exception= (8) -
respond
_ to? (11) -
respond
_ to _ missing? (11) - result (11)
- resume (11)
-
return
_ value (11) -
reverse
_ each (11) - rewind (17)
-
ruby2
_ keywords (5) - sample (22)
- saturday? (11)
- scan (22)
- scrub (33)
- scrub! (33)
- seek (11)
- select (67)
- select! (39)
- self (11)
-
set
_ backtrace (11) -
set
_ encoding (66) -
set
_ encoding _ by _ bom (5) -
set
_ trace _ func (11) - setbyte (11)
- setgid? (11)
- setuid? (11)
- shift (40)
- signal (9)
- signaled? (11)
-
singleton
_ class (11) -
singleton
_ class? (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) - size (14)
- slice (139)
- slice! (44)
-
slice
_ after (32) -
slice
_ before (55) -
slice
_ when (21) - socket? (11)
- sort (22)
- sort! (22)
-
sort
_ by (22) -
sort
_ by! (11) -
source
_ encoding (11) -
source
_ encoding _ name (11) -
source
_ location (17) - split (17)
-
start
_ with? (16) - status (11)
- step (56)
- sticky? (11)
- strftime (11)
- sub (33)
- sub! (33)
- subsec (11)
- succ (14)
- succ! (11)
- success? (11)
- sum (49)
- sunday? (11)
-
super
_ method (10) - swapcase (8)
- sync (11)
- synchronize (11)
- sysread (11)
- taint (9)
- tainted? (9)
-
take
_ while (44) -
thread
_ variable? (11) -
thread
_ variable _ get (11) -
thread
_ variable _ set (11) - thursday? (11)
-
to
_ a (28) -
to
_ binary (9) -
to
_ enum (22) -
to
_ f (3) -
to
_ h (17) -
to
_ i (11) -
to
_ int (11) -
to
_ io (11) -
to
_ proc (11) -
to
_ s (95) -
to
_ str (11) -
to
_ sym (22) - transfer (3)
-
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - tty? (11)
- tuesday? (11)
- unbind (11)
- ungetbyte (11)
-
unicode
_ normalized? (10) - union (6)
- uniq (22)
- unpack (11)
- unpack1 (8)
- unshift (11)
- untaint (9)
- upcase (8)
- upto (11)
- utc? (11)
-
valid
_ encoding? (11) -
values
_ at (11) - wait (9)
- wednesday? (11)
-
with
_ index (32) -
with
_ object (22) -
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) -
write
_ nonblock (11) - yield (11)
-
yield
_ self (14) - zero? (25)
- zip (66)
- | (17)
- ~ (6)
検索結果
先頭5件
-
TracePoint
# binding -> Binding (29601.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...発生したイベントによって生成された Binding オブジェクトを返します。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
TracePoint
# binding -> Binding | nil (29601.0) -
発生したイベントによって生成された Binding オブジェクトを返します。
...れた Binding オブジェクトを返します。
C で記述されたメソッドは binding を生成しないため、
:c_call および :c_return イベントに対しては nil を返すことに注意してください。
//emlist[例][ruby]{
def foo(ret)
ret
end
trace = TracePoint.new(:......call) do |tp|
p tp.binding.local_variables # => [:ret]
end
trace.enable
foo 1
//}... -
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (29301.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (29301.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (29301.0) -
エラー発生時に入力文字列が不足している場合に真を返します。
.../emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1z")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "z" on EUC-JP>
p $!.incomplete_input? #=> false
end
begin
ec.convert("abc\x......A1")
ec.finish
rescue Encoding::InvalidByteSequenceError
p $! #=> #<Encoding::InvalidByteSequenceError: incomplete "\xA1" on EUC-JP>
p $!.incomplete_input? #=> true
end
//}... -
Encoding
:: InvalidByteSequenceError # readagain _ bytes -> String (29301.0) -
エラー発生時に読み直さなければならないバイト列を返します。
...エラー発生時に読み直さなければならないバイト列を返します。
@see Encoding::InvalidByteSequenceError#error_bytes... -
String
# b -> String (29208.0) -
self の文字エンコーディングを ASCII-8BIT にした文字列の複製を返します。
...self の文字エンコーディングを ASCII-8BIT にした文字列の複製を返します。
//emlist[例][ruby]{
'abc123'.encoding # => #<Encoding:UTF-8>
'abc123'.b.encoding # => #<Encoding:ASCII-8BIT>
//}... -
Proc
# binding -> Binding (26601.0) -
Proc オブジェクトが保持するコンテキストを Binding オブジェクトで返します。
...Proc オブジェクトが保持するコンテキストを
Binding オブジェクトで返します。
//emlist[例][ruby]{
def fred(param)
proc {}
end
sample_proc = fred(99)
eval("param", sample_proc.binding) # => 99
//}... -
Object
# instance _ variable _ defined?(var) -> bool (26313.0) -
インスタンス変数 var が定義されていたら真を返します。
...文字列か Symbol で指定します。
//emlist[][ruby]{
class Fred
def initialize(p1, p2)
@a, @b = p1, p2
end
end
fred = Fred.new('cat', 99)
p fred.instance_variable_defined?(:@a) #=> true
p fred.instance_variable_defined?("@b") #=> true
p fred.instance_variable_defined?("@c") #=......> false
//}
@see Object#instance_variable_get,Object#instance_variable_set,Object#instance_variables... -
Binding
# local _ variable _ defined?(symbol) -> bool (26207.0) -
引数 symbol で指定した名前のローカル変数が定義されている場合に true を、 そうでない場合に false を返します。
...ymbol で指定した名前のローカル変数が定義されている場合に true を、
そうでない場合に false を返します。
@param symbol ローカル変数名を Symbol オブジェクトで指定します。
//emlist[例][ruby]{
def foo
a = 1
binding.local_variable_define......d?(:a) # => true
binding.local_variable_defined?(:b) # => false
end
//}
このメソッドは以下のコードの短縮形です。
//emlist[][ruby]{
binding.eval("defined?(#{symbol}) == 'local-variable'")
//}
@see Binding#local_variable_get, Binding#local_variable_set... -
Enumerable
# find _ index {|obj| . . . } -> Integer | nil (23437.0) -
条件に一致する最初の要素の位置を返します。
...等しい最初の要素の位置を返します。
等しい要素がひとつもなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index(11) #=> nil
(1..10).find_index(2) #=> 1
//}
ブロックが与えられた場合には、各要素を引数として先頭から......素の位置を返します。
一つも真にならなかった場合は nil を返します。
//emlist[例][ruby]{
(1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
(1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
//}
引数、ブロックのどちらも与えられな...