8923件ヒット
[1-100件を表示]
(0.097秒)
クラス
-
ARGF
. class (132) - Array (764)
- BasicObject (168)
- Bignum (99)
- Binding (86)
- Class (12)
- Complex (57)
- Dir (36)
- Encoding (24)
-
Encoding
:: Converter (120) -
Encoding
:: InvalidByteSequenceError (84) - Enumerator (60)
-
Enumerator
:: ArithmeticSequence (21) -
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (151) -
Enumerator
:: Yielder (24) - Exception (56)
- Fiber (38)
- File (11)
-
File
:: Stat (276) - Fixnum (84)
- Float (44)
- FrozenError (6)
- Hash (351)
- IO (376)
- Integer (273)
- KeyError (8)
- LocalJumpError (12)
- MatchData (47)
- Method (83)
- Module (560)
- Mutex (2)
- NameError (20)
- NilClass (36)
- NoMethodError (9)
- Numeric (187)
- Object (580)
-
ObjectSpace
:: WeakMap (12) - Proc (27)
-
Process
:: Status (36) - Random (12)
- Range (175)
- Rational (48)
- Regexp (72)
-
RubyVM
:: AbstractSyntaxTree :: Node (42) -
RubyVM
:: InstructionSequence (130) - Set (9)
- StopIteration (12)
- String (1026)
- Struct (60)
- Symbol (341)
- SystemExit (12)
- Thread (246)
-
Thread
:: Backtrace :: Location (84) -
Thread
:: ConditionVariable (30) -
Thread
:: Mutex (10) -
Thread
:: Queue (10) -
Thread
:: SizedQueue (68) - Time (168)
- TracePoint (146)
- UnboundMethod (107)
モジュール
- Comparable (21)
- Enumerable (1096)
- GC (12)
キーワード
- ! (12)
- != (12)
- % (18)
- & (6)
- * (6)
- ** (17)
- + (18)
- - (6)
- -@ (3)
-
/ (6) - < (27)
- << (52)
- <= (27)
- <=> (27)
- == (97)
- === (51)
- =~ (21)
- > (27)
- >= (27)
- >> (18)
- [] (231)
- []= (12)
- ^ (18)
-
_ _ id _ _ (12) -
_ _ send _ _ (24) -
_ dump (12) -
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) - abs (51)
- abs2 (24)
-
absolute
_ path (24) -
alias
_ method (4) - alive? (16)
- all? (19)
- allbits? (8)
- any? (23)
- anybits? (8)
-
append
_ as _ bytes (1) - arity (24)
-
ascii
_ compatible? (12) -
ascii
_ only? (12) - assoc (12)
- at (12)
-
attr
_ writer (4) - autoclose= (12)
- autoclose? (12)
- backtrace (24)
-
backtrace
_ locations (36) -
base
_ label (24) - begin (31)
- between? (24)
- bind (12)
-
bind
_ call (12) - binding (24)
- binmode (24)
- binmode? (24)
- birthtime (23)
-
bit
_ length (18) - blksize (12)
- blockdev? (12)
- blocks (12)
- broadcast (10)
- bsearch (48)
-
bsearch
_ index (20) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (50)
- bytesize (12)
- byteslice (36)
- bytesplice (10)
-
callee
_ id (12) - capitalize (12)
- casecmp (12)
- casecmp? (18)
- chain (7)
- chardev? (12)
- chars (12)
- children (7)
-
chunk
_ while (21) - clamp (9)
-
class
_ eval (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - clone (12)
-
close
_ on _ exec= (12) -
close
_ on _ exec? (12) - closed? (12)
- codepoints (12)
- collect (24)
-
collect
_ concat (36) - combination (24)
- compact! (9)
-
compare
_ by _ identity (12) -
compare
_ by _ identity? (12) -
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
- convert (12)
- count (48)
- curry (23)
- cycle (48)
- default (24)
-
define
_ method (24) -
define
_ singleton _ method (24) - delete (24)
-
delete
_ at (12) - deq (10)
-
destination
_ encoding (12) -
destination
_ encoding _ name (12) - detect (24)
- dig (30)
- digits (12)
- directory? (12)
- disable (24)
- disasm (12)
- disassemble (12)
- disjoint? (3)
- display (12)
- div (6)
- divmod (3)
- downcase (9)
-
drop
_ while (24) - dst? (12)
- dummy? (12)
- dump (12)
- each (7)
-
each
_ byte (48) -
each
_ char (12) -
each
_ codepoint (12) -
each
_ cons (12) -
each
_ grapheme _ cluster (8) -
each
_ pair (36) -
each
_ slice (24) -
each
_ with _ index (24) -
each
_ with _ object (24) - empty? (20)
- enable (24)
- enabled? (12)
- encode (36)
- encoding (12)
-
end
_ with? (18) - enq (10)
- entries (19)
-
enum
_ for (24) - eof (12)
- eof? (12)
- eql? (51)
- equal? (12)
-
error
_ bytes (12) - eval (24)
- even? (18)
- event (12)
-
exclude
_ end? (7) - executable? (12)
-
executable
_ real? (12) -
exit
_ value (12) - exited? (12)
- fdiv (3)
- feed (12)
- fetch (20)
-
fetch
_ values (2) - file? (12)
- filter (49)
- filter! (28)
-
filter
_ map (12) - find (24)
-
find
_ all (24) -
find
_ index (36) - finish (12)
- finite? (30)
- first (60)
-
first
_ column (7) -
first
_ lineno (19) -
fixed
_ encoding? (12) -
flat
_ map (36) - friday? (12)
-
garbage
_ collect (12) - getbyte (36)
- getc (12)
- gmt? (12)
-
grapheme
_ clusters (8) - grep (12)
-
grep
_ v (12) -
group
_ by (24) - grpowned? (12)
- gsub (48)
- gsub! (48)
- hash (51)
- id2name (12)
-
ignore
_ deadlock (4) -
ignore
_ deadlock= (4) - include? (75)
-
incomplete
_ input? (12) - index (7)
- inherited (12)
- initialize (12)
-
initialize
_ clone (12) -
initialize
_ copy (12) -
initialize
_ dup (12) - inject (36)
- insert (12)
-
insert
_ output (12) - inspect (115)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) -
instance
_ variables (12) -
instruction
_ sequence (7) - integer? (12)
- intern (24)
- intersect? (7)
- intersection (6)
- invert (12)
- irb (9)
-
is
_ a? (12) - isatty (12)
- isdst (12)
- itself (12)
-
keep
_ if (48) - key (7)
-
kind
_ of? (12) - label (24)
- last (12)
-
last
_ column (7) -
last
_ lineno (7) - length (12)
- lineno (12)
- lineno= (24)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) -
local
_ variables (21) - magnitude (63)
- map (24)
- match (48)
- match? (9)
- max (66)
-
max
_ by (48) - member? (19)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) - methods (12)
- min (130)
-
min
_ by (48) - minmax (48)
-
minmax
_ by (24) -
module
_ eval (12) -
module
_ function (12) - modulo (6)
- monday? (12)
- name (17)
-
named
_ captures (1) - negative? (29)
- next (12)
- next! (12)
- nil? (24)
- nobits? (8)
- nonzero? (12)
-
object
_ id (12) - oct (12)
- odd? (18)
-
original
_ name (24) - owned? (12)
- pack (21)
- parameters (10)
- partition (24)
- path (24)
-
pending
_ interrupt? (12) - permutation (12)
- pipe? (12)
- pop (22)
- pos= (12)
- positive? (29)
- pow (22)
- pread (8)
-
primitive
_ convert (48) - priority (12)
- priority= (12)
- private (48)
-
private
_ call? (9) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) - protected (12)
-
protected
_ instance _ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ instance _ method (12) -
public
_ instance _ methods (12) -
public
_ method (12) -
public
_ method _ defined? (12) -
public
_ methods (12) -
public
_ send (24) - push (10)
- putback (24)
- putc (12)
- puts (12)
- raise (30)
- rassoc (12)
- read (12)
-
read
_ nonblock (24) - readable? (12)
-
readable
_ real? (12) -
readagain
_ bytes (12) - readbyte (24)
- readpartial (24)
- real? (12)
- receiver (47)
- reduce (36)
- reject (36)
- remainder (3)
-
remove
_ class _ variable (12) -
remove
_ instance _ variable (12) -
repeated
_ combination (24) - replacement= (12)
-
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - result (12)
- resume (12)
-
return
_ value (12) -
reverse
_ each (12) - rewind (19)
-
ruby2
_ keywords (12) - sample (24)
- saturday? (12)
- scan (24)
- scrub (36)
- scrub! (36)
- seek (12)
- select (74)
- select! (43)
- self (12)
-
set
_ backtrace (12) -
set
_ encoding (72) -
set
_ encoding _ by _ bom (6) -
set
_ trace _ func (12) - setbyte (12)
- setgid? (12)
- setuid? (12)
- shift (44)
- signal (10)
- signaled? (12)
-
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - size (15)
- slice (152)
- slice! (48)
-
slice
_ after (35) -
slice
_ before (60) -
slice
_ when (23) - socket? (12)
- sort (24)
- sort! (24)
-
sort
_ by (24) -
sort
_ by! (12) -
source
_ encoding (12) -
source
_ encoding _ name (12) -
source
_ location (19) - split (19)
-
start
_ with? (18) - status (12)
- step (62)
- sticky? (12)
- strftime (12)
- sub (36)
- sub! (36)
- subsec (12)
- succ (15)
- succ! (12)
- success? (12)
- sum (54)
- sunday? (12)
-
super
_ method (11) - swapcase (9)
- sync (12)
- synchronize (12)
- sysread (12)
- taint (9)
- tainted? (9)
-
take
_ while (48) -
thread
_ variable? (12) -
thread
_ variable _ get (12) -
thread
_ variable _ set (12) - thursday? (12)
-
to
_ a (31) -
to
_ binary (10) -
to
_ enum (24) -
to
_ f (3) -
to
_ h (19) -
to
_ i (12) -
to
_ int (12) -
to
_ io (12) -
to
_ proc (12) -
to
_ s (104) -
to
_ str (12) -
to
_ sym (24) - transfer (4)
-
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - tty? (12)
- tuesday? (12)
- unbind (12)
- ungetbyte (12)
-
unicode
_ normalized? (11) - union (7)
- uniq (24)
- unpack (12)
- unpack1 (9)
- unshift (12)
- untaint (9)
- upcase (9)
- upto (12)
- utc? (12)
-
valid
_ encoding? (12) -
values
_ at (12) - wait (10)
- wednesday? (12)
-
with
_ index (36) -
with
_ object (24) -
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) -
write
_ nonblock (12) - yield (12)
-
yield
_ self (16) - zero? (27)
- zip (72)
- | (18)
- ~ (6)
検索結果
先頭5件
-
TracePoint
# binding -> Binding (21603.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 (21603.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 (21303.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (21303.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (21303.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 (21303.0) -
エラー発生時に読み直さなければならないバイト列を返します。
...エラー発生時に読み直さなければならないバイト列を返します。
@see Encoding::InvalidByteSequenceError#error_bytes... -
String
# b -> String (21210.0) -
self の文字エンコーディングを ASCII-8BIT にした文字列の複製を返します。
...self の文字エンコーディングを ASCII-8BIT にした文字列の複製を返します。
//emlist[例][ruby]{
'abc123'.encoding # => #<Encoding:UTF-8>
'abc123'.b.encoding # => #<Encoding:ASCII-8BIT>
//}... -
Proc
# binding -> Binding (18603.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 (18315.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 (18209.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...