11338件ヒット
[1-100件を表示]
(0.134秒)
クラス
-
ARGF
. class (121) - Array (724)
- BasicObject (154)
- Bignum (99)
- Binding (78)
- Class (11)
- Complex (52)
- Data (2)
- Dir (138)
- Encoding (472)
-
Encoding
:: Converter (110) -
Encoding
:: InvalidByteSequenceError (77) - Enumerator (73)
-
Enumerator
:: ArithmeticSequence (18) -
Enumerator
:: Chain (12) -
Enumerator
:: Lazy (148) -
Enumerator
:: Yielder (22) - Exception (58)
- Fiber (57)
- File (383)
-
File
:: Stat (253) - Fixnum (84)
- Float (40)
- FrozenError (5)
- Hash (327)
- IO (587)
- Integer (254)
- KeyError (7)
- LocalJumpError (11)
- MatchData (37)
- Method (75)
- Module (437)
- Mutex (2)
- NameError (18)
- NilClass (33)
- NoMethodError (8)
- Numeric (170)
- Object (672)
-
ObjectSpace
:: WeakMap (11) - Proc (24)
-
Process
:: Status (33) - Random (28)
- Range (158)
- Rational (43)
- Regexp (99)
- RubyVM (33)
-
RubyVM
:: AbstractSyntaxTree :: Node (36) -
RubyVM
:: InstructionSequence (225) - SignalException (22)
- StopIteration (11)
- String (952)
- Struct (64)
- Symbol (310)
- SystemExit (11)
- Thread (308)
-
Thread
:: Backtrace :: Location (77) -
Thread
:: ConditionVariable (36) -
Thread
:: Mutex (9) -
Thread
:: Queue (12) -
Thread
:: SizedQueue (61) - Time (154)
- TracePoint (165)
- UnboundMethod (97)
モジュール
- Comparable (19)
- Enumerable (1002)
-
File
:: Constants (44) - FileTest (270)
- GC (60)
-
GC
:: Profiler (33) - Kernel (506)
- Marshal (44)
- ObjectSpace (77)
- Process (66)
-
Process
:: GID (33) -
Process
:: Sys (11) -
Process
:: UID (33) -
RubyVM
:: AbstractSyntaxTree (18) -
RubyVM
:: MJIT (18) - Warning (5)
キーワード
- ! (11)
- != (11)
-
$ -v (11) -
$ -w (11) -
$ > (11) -
$ VERBOSE (11) -
$ stdin (11) -
$ stdout (11) - % (17)
- & (6)
- * (6)
- ** (17)
- + (17)
- - (6)
- -@ (3)
-
/ (6) - < (25)
- << (48)
- <= (25)
- <=> (25)
- == (89)
- === (47)
- =~ (20)
- > (25)
- >= (25)
- >> (17)
-
ASCII
_ 8BIT (11) - BIG5 (11)
-
BIG5
_ HKSCS (11) -
BIG5
_ HKSCS _ 2008 (11) -
BIG5
_ UAO (11) - BINARY (22)
- BasicObject (11)
- Big5 (11)
-
Big5
_ HKSCS (11) -
Big5
_ HKSCS _ 2008 (11) -
Big5
_ UAO (11) - Bignum (9)
- Binding (11)
-
CLOCK
_ BOOTTIME (11) -
CLOCK
_ BOOTTIME _ ALARM (11) -
CLOCK
_ MONOTONIC (11) -
CLOCK
_ PROCESS _ CPUTIME _ ID (11) -
CLOCK
_ REALTIME (11) - CP951 (11)
- CompatibilityError (11)
- Complex (22)
- ConditionVariable (18)
- DATA (11)
- DEBUG (11)
-
DEFAULT
_ PARAMS (11) - E2BIG (11)
-
EBCDIC
_ CP _ US (9) - EFBIG (11)
- ELIBACC (11)
- ELIBBAD (11)
- ELIBEXEC (11)
- ELIBMAX (11)
- ELIBSCN (11)
-
FNM
_ EXTGLOB (11) - Fiber (11)
- FiberError (11)
- GB12345 (11)
- GB18030 (11)
- GB1988 (11)
- GBK (11)
- IBM037 (9)
- IBM437 (11)
- IBM720 (3)
- IBM737 (11)
- IBM775 (11)
- IBM850 (11)
- IBM852 (11)
- IBM855 (11)
- IBM857 (11)
- IBM860 (11)
- IBM861 (11)
- IBM862 (11)
- IBM863 (11)
- IBM864 (11)
- IBM865 (11)
- IBM866 (11)
- IBM869 (11)
-
INSTRUCTION
_ NAMES (11) -
INTERNAL
_ CONSTANTS (11) - InstructionSequence (11)
- Integer (11)
- InvalidByteSequenceError (11)
-
LOCK
_ NB (11) - Location (11)
- MJIT (6)
- NIL (8)
- NONBLOCK (11)
- OPTS (11)
-
RLIMIT
_ SBSIZE (11) -
RUBY
_ COPYRIGHT (11) -
RUBY
_ DESCRIPTION (11) -
RUBY
_ ENGINE (11) -
RUBY
_ ENGINE _ VERSION (9) -
RUBY
_ PATCHLEVEL (11) -
RUBY
_ PLATFORM (11) -
RUBY
_ RELEASE _ DATE (11) -
RUBY
_ REVISION (11) -
RUBY
_ VERSION (11) -
SCRIPT
_ LINES _ _ (11) -
SJIS
_ SOFTBANK (11) -
SJIS
_ SoftBank (11) - STDERR (11)
- STDIN (11)
- STDOUT (11)
- String (11)
-
TOPLEVEL
_ BINDING (11) -
UCS
_ 2BE (11) -
UCS
_ 4BE (11) -
UTF8
_ SOFTBANK (11) -
UTF8
_ SoftBank (11) -
UTF
_ 16BE (11) -
UTF
_ 32BE (11) - WaitReadable (11)
- WaitWritable (11)
- [] (227)
- []= (11)
- ^ (17)
-
_ _ callee _ _ (11) -
_ _ id _ _ (11) -
_ _ method _ _ (11) -
_ _ send _ _ (22) -
_ dump (11) -
_ id2ref (11) -
abort
_ on _ exception (22) -
abort
_ on _ exception= (22) - abs (47)
- abs2 (22)
-
absolute
_ path (33) -
absolute
_ path? (5) -
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) - basename (11)
- begin (28)
- between? (22)
- bind (11)
-
bind
_ call (10) - binding (33)
- binmode (22)
- binmode? (22)
- binread (11)
- binwrite (11)
- birthtime (31)
-
bit
_ length (17) - blksize (11)
-
block
_ given? (11) - blockdev? (33)
- blocks (11)
- broadcast (9)
- bsearch (44)
-
bsearch
_ index (18) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (53)
- bytesize (11)
- byteslice (33)
- bytesplice (6)
-
callee
_ id (11) -
caller
_ locations (22) - capitalize (11)
- casecmp (11)
- casecmp? (16)
- catch (22)
- chain (6)
- chardev? (33)
- chars (11)
- chdir (22)
- 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) - compatible? (11)
- compile (11)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) -
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
- convert (11)
- count (44)
- current (3)
- curry (21)
- cycle (44)
- default (22)
- define (2)
-
define
_ finalizer (22) -
define
_ method (44) -
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? (33)
- disable (44)
- disasm (22)
- disassemble (22)
- display (11)
- div (6)
- divmod (3)
- downcase (8)
-
drop
_ while (22) - dst? (11)
- dummy? (11)
- dump (33)
- each (6)
-
each
_ byte (44) -
each
_ char (11) -
each
_ codepoint (11) -
each
_ cons (11) -
each
_ grapheme _ cluster (7) -
each
_ object (22) -
each
_ pair (33) -
each
_ slice (22) -
each
_ with _ index (22) -
each
_ with _ object (22) - empty? (42)
- enable (33)
- enabled? (28)
- 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 (33)
- even? (17)
- event (11)
-
exclude
_ end? (6) - exclusive (11)
- executable? (33)
-
executable
_ real? (33) - exist? (33)
- exists? (27)
-
exit
_ value (11) - exited? (11)
- fail (11)
- fdiv (3)
- feed (11)
- fetch (18)
- file? (33)
- 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) - fnmatch (11)
- fnmatch? (11)
-
for
_ fd (11) - format (11)
- friday? (11)
-
garbage
_ collect (22) - getbyte (33)
- getc (11)
- gets (11)
- glob (22)
-
global
_ variables (11) - gmt? (11)
-
grapheme
_ clusters (7) - grep (11)
-
grep
_ v (11) -
group
_ by (22) - grpowned? (33)
- gsub (66)
- gsub! (44)
-
handle
_ interrupt (11) - hash (47)
- id2name (11)
- identical? (22)
-
ignore
_ deadlock (3) -
ignore
_ deadlock= (3) - include? (77)
-
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)
- issetugid (11)
- iterator? (11)
- itself (11)
- join (11)
-
keep
_ if (44) - key (7)
-
keyword
_ init? (3) -
kind
_ of? (11) - label (22)
- last (11)
-
last
_ column (6) -
last
_ lineno (6) -
last
_ match (11) -
latest
_ gc _ info (11) - length (11)
- lineno (11)
- lineno= (22)
- load (11)
-
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) -
local
_ variable _ defined? (11) -
local
_ variable _ get (11) -
local
_ variable _ set (11) -
local
_ variables (30) - loop (11)
- 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)
- new (144)
- next (11)
- next! (11)
- nil? (22)
- nobits? (7)
- nonzero? (11)
-
object
_ id (11) - oct (11)
- odd? (17)
- of (13)
- open (77)
-
original
_ name (22) - owned? (33)
- pack (19)
- parameters (8)
- parse (8)
-
parse
_ file (8) - partition (22)
- path (22)
- pause (6)
-
pending
_ interrupt? (22) - permutation (11)
- pipe (88)
- pipe? (33)
- pop (20)
- popen (77)
- pos= (11)
- positive? (26)
- pow (22)
- pread (7)
-
primitive
_ convert (44) - printf (22)
- priority (11)
- priority= (11)
- private (27)
-
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 (46)
-
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 (37)
- rassoc (11)
-
re
_ exchangeable? (22) - read (11)
-
read
_ nonblock (22) - readable? (33)
-
readable
_ real? (33) -
readagain
_ bytes (11) - readbyte (22)
- readline (11)
- readlines (11)
- readpartial (22)
- real? (11)
- realdirpath (11)
- realpath (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 (16) -
report
_ on _ exception= (8) - require (11)
-
require
_ relative (11) -
respond
_ to? (11) -
respond
_ to _ missing? (11) - restore (11)
- result (11)
- resume (17)
-
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? (33)
- setuid? (33)
- shift (40)
-
sid
_ available? (22) - 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? (33)
- sort (22)
- sort! (22)
-
sort
_ by (22) -
sort
_ by! (11) -
source
_ encoding (11) -
source
_ encoding _ name (11) -
source
_ location (17) - split (17)
- sprintf (11)
- srand (11)
-
start
_ with? (16) - stat (21)
- status (11)
- step (56)
- sticky? (33)
- stop (11)
- strftime (11)
- sub (55)
- sub! (33)
- subsec (11)
- succ (14)
- succ! (11)
- success? (11)
- sum (49)
- sunday? (11)
-
super
_ method (10) - swapcase (8)
- switch (22)
- symlink? (22)
- sync (11)
- synchronize (11)
- sysread (11)
- system (44)
- taint (9)
- tainted? (9)
-
take
_ while (44) - test (22)
-
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) -
to
_ tty? (7) - trace (11)
- transfer (3)
-
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) -
try
_ convert (58) - tty? (11)
- tuesday? (11)
- unbind (11)
-
undefine
_ finalizer (11) - ungetbyte (11)
-
unicode
_ normalized? (10) - union (17)
- uniq (22)
- unpack (11)
- unpack1 (8)
- unshift (11)
- untaint (9)
-
untrace
_ var (11) - upcase (8)
- upto (11)
- utc? (11)
-
valid
_ encoding? (11) -
values
_ at (11) -
verify
_ compaction _ references (5) - wait (9)
- wednesday? (11)
-
with
_ index (32) -
with
_ object (22) -
world
_ readable? (33) -
world
_ writable? (33) - writable? (33)
-
writable
_ real? (33) -
write
_ nonblock (11) - yield (22)
-
yield
_ self (14) - zero? (47)
- zip (66)
- | (17)
- ~ (6)
検索結果
先頭5件
-
TracePoint
# binding -> Binding (29602.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 (29602.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 (29302.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (29302.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # incomplete _ input? -> bool (29302.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 (29302.0) -
エラー発生時に読み直さなければならないバイト列を返します。
...エラー発生時に読み直さなければならないバイト列を返します。
@see Encoding::InvalidByteSequenceError#error_bytes... -
String
# b -> String (29209.0) -
self の文字エンコーディングを ASCII-8BIT にした文字列の複製を返します。
...self の文字エンコーディングを ASCII-8BIT にした文字列の複製を返します。
//emlist[例][ruby]{
'abc123'.encoding # => #<Encoding:UTF-8>
'abc123'.b.encoding # => #<Encoding:ASCII-8BIT>
//}... -
Kernel
. # binding -> Binding (26602.0) -
変数・メソッドなどの環境情報を含んだ Binding オブジェクトを 生成して返します。通常、Kernel.#eval の第二引数として使います。
...変数・メソッドなどの環境情報を含んだ Binding オブジェクトを
生成して返します。通常、Kernel.#eval の第二引数として使います。
//emlist[例][ruby]{
def foo
a = 1
binding
end
eval("p a", foo) #=> 1
//}
@see Kernel.#eval,Object::TOPLEVEL_BINDING... -
Object
:: TOPLEVEL _ BINDING -> Binding (26602.0) -
トップレベルでの Binding オブジェクト。
...トップレベルでの Binding オブジェクト。
詳細は Binding を参照してください。... -
Proc
# binding -> Binding (26602.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 (26314.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...