ライブラリ
- ビルトイン (1716)
クラス
-
ARGF
. class (81) - Array (170)
- BasicObject (14)
- Binding (7)
- Class (5)
- Complex (44)
- Dir (13)
- Encoding (7)
-
Encoding
:: Converter (17) -
Encoding
:: InvalidByteSequenceError (7) -
Encoding
:: UndefinedConversionError (5) - Enumerator (15)
-
Enumerator
:: Lazy (33) -
Enumerator
:: Yielder (2) - Exception (10)
- FalseClass (5)
- Fiber (1)
- File (12)
-
File
:: Stat (42) - Float (44)
- Hash (89)
- IO (102)
- Integer (65)
- LoadError (1)
- LocalJumpError (2)
- MatchData (24)
- Method (21)
- Module (76)
- NameError (4)
- NilClass (13)
- NoMethodError (2)
- Numeric (49)
- Object (69)
-
ObjectSpace
:: WeakMap (2) - Proc (15)
-
Process
:: Status (15) -
Process
:: Tms (8) - Random (10)
- Range (31)
- Rational (30)
- Regexp (18)
-
RubyVM
:: InstructionSequence (11) - SignalException (2)
- StopIteration (1)
- String (172)
- Struct (22)
- Symbol (33)
- SystemCallError (1)
- SystemExit (2)
- Thread (36)
-
Thread
:: Backtrace :: Location (7) -
Thread
:: ConditionVariable (3) -
Thread
:: Mutex (7) -
Thread
:: Queue (13) -
Thread
:: SizedQueue (9) - ThreadGroup (4)
- Time (55)
- TracePoint (16)
- TrueClass (5)
- UnboundMethod (14)
- UncaughtThrowError (3)
モジュール
- Comparable (7)
- Enumerable (111)
- GC (1)
- Warning (1)
キーワード
- ! (1)
- != (1)
- !~ (1)
- % (4)
- & (6)
- * (7)
- ** (4)
- + (7)
- +@ (2)
- - (7)
- -@ (6)
-
/ (3) - < (6)
- << (7)
- <= (6)
- <=> (11)
- == (20)
- === (8)
- =~ (4)
- > (6)
- >= (6)
- >> (2)
- [] (25)
- []= (14)
- ^ (4)
-
_ _ id _ _ (1) -
_ _ send _ _ (2) -
_ dump (1) -
_ load (1) -
abort
_ on _ exception (1) -
abort
_ on _ exception= (1) - abs (5)
- abs2 (2)
-
absolute
_ path (2) - add (1)
-
add
_ trace _ func (1) - advise (1)
-
alias
_ method (1) - alive? (1)
- all? (2)
- allocate (1)
- ancestors (1)
- angle (3)
- any? (4)
-
append
_ features (1) - arg (3)
- args (1)
- argv (1)
- arity (3)
-
ascii
_ compatible? (1) -
ascii
_ only? (1) - asctime (1)
- assoc (2)
- at (1)
- atime (2)
- attr (3)
-
attr
_ accessor (1) -
attr
_ reader (1) -
attr
_ writer (1) - autoclose= (1)
- autoclose? (1)
- autoload (1)
- autoload? (1)
- b (1)
- backtrace (2)
-
backtrace
_ locations (3) -
base
_ label (2) - begin (2)
- between? (2)
- bind (1)
- binding (2)
- binmode (2)
- binmode? (2)
- birthtime (2)
-
bit
_ length (1) - blksize (1)
- blockdev? (1)
- blocks (1)
- broadcast (1)
- bsearch (4)
-
bsearch
_ index (2) - bytes (7)
- bytesize (1)
- byteslice (3)
- call (3)
-
callee
_ id (1) - capitalize (2)
- capitalize! (1)
- captures (1)
- casecmp (2)
- casecmp? (2)
- casefold? (1)
- cause (1)
- ceil (4)
- center (1)
- chardev? (1)
- chars (6)
- chmod (1)
- chomp (1)
- chomp! (1)
- chop (1)
- chop! (1)
- chown (1)
- chr (3)
- chunk (3)
-
chunk
_ while (2) - clamp (2)
- class (1)
-
class
_ eval (2) -
class
_ exec (1) -
class
_ variable _ defined? (1) -
class
_ variable _ get (1) -
class
_ variable _ set (1) -
class
_ variables (1) - clear (4)
- clone (6)
- close (5)
-
close
_ on _ exec= (1) -
close
_ on _ exec? (1) -
close
_ read (1) -
close
_ write (1) - closed? (3)
- codepoints (6)
- coerce (3)
- collect (5)
- collect! (2)
-
collect
_ concat (3) - combination (2)
- compact (2)
- compact! (2)
-
compare
_ by _ identity (1) -
compare
_ by _ identity? (1) - concat (4)
- conj (2)
- conjugate (2)
-
const
_ defined? (1) -
const
_ get (1) -
const
_ missing (1) -
const
_ set (1) - constants (1)
- convert (2)
- convpath (1)
- coredump? (1)
- count (7)
- cover? (1)
- crypt (1)
- cstime (1)
- cstime= (1)
- ctime (3)
- curry (4)
- cutime (1)
- cutime= (1)
- cycle (4)
- day (1)
- default (2)
- default= (1)
-
default
_ proc (1) -
default
_ proc= (1) -
define
_ method (2) -
define
_ singleton _ method (2) -
defined
_ class (1) - delete (5)
- delete! (1)
-
delete
_ at (1) -
delete
_ if (4) - denominator (5)
-
deprecate
_ constant (1) - deq (2)
-
destination
_ encoding (3) -
destination
_ encoding _ name (2) - detect (2)
- dev (1)
-
dev
_ major (1) -
dev
_ minor (1) - dig (3)
- digits (2)
- directory? (1)
- disable (2)
- disasm (1)
- disassemble (1)
- display (1)
- div (2)
- divmod (3)
- downcase (2)
- downcase! (1)
- downto (2)
- drop (3)
-
drop
_ while (5) - dst? (1)
- dummy? (1)
- dump (1)
- dup (4)
- each (24)
-
each
_ byte (6) -
each
_ char (6) -
each
_ codepoint (6) -
each
_ cons (2) -
each
_ entry (2) -
each
_ index (2) -
each
_ key (2) -
each
_ line (12) -
each
_ pair (4) -
each
_ slice (2) -
each
_ value (2) -
each
_ with _ index (2) -
each
_ with _ object (2) - empty? (5)
- enable (2)
- enabled? (1)
- enclose (1)
- enclosed? (1)
- encode (3)
- encode! (2)
- encoding (3)
- end (2)
-
end
_ with? (1) - enq (2)
- entries (1)
-
enum
_ for (4) - eof (2)
- eof? (2)
- eql? (13)
- equal? (4)
- errno (1)
-
error
_ bytes (1) -
error
_ char (1) - eval (2)
- even? (1)
- event (1)
- exception (2)
-
exclude
_ end? (1) - executable? (1)
-
executable
_ real? (1) - exit (1)
-
exit
_ value (1) - exited? (1)
- exitstatus (1)
- extend (1)
-
extend
_ object (1) - extended (1)
-
external
_ encoding (2) - fcntl (1)
- fdatasync (1)
- fdiv (4)
- feed (1)
- fetch (6)
-
fetch
_ values (2) - file (1)
- file? (1)
- filename (1)
- fileno (3)
- fill (6)
- find (2)
-
find
_ all (3) -
find
_ index (6) - finish (1)
- finite? (3)
- first (6)
-
first
_ lineno (1) -
fixed
_ encoding? (1) -
flat
_ map (3) - flatten (2)
- flatten! (1)
- flock (1)
- floor (4)
- flush (1)
- force (1)
-
force
_ encoding (1) - freeze (2)
- friday? (1)
- frozen? (1)
- fsync (1)
- ftype (1)
-
garbage
_ collect (1) - gcd (1)
- gcdlcm (1)
- getbyte (3)
- getc (2)
- getgm (1)
- getlocal (2)
- gets (6)
- getutc (1)
- gid (1)
- gmt? (1)
-
gmt
_ offset (1) - gmtime (1)
- gmtoff (1)
- grep (3)
-
grep
_ v (3) - group (1)
-
group
_ by (2) - grpowned? (1)
- gsub (4)
- gsub! (4)
-
has
_ key? (1) -
has
_ value? (1) - hash (14)
- hex (1)
- hour (1)
- i (1)
- id2name (1)
- imag (2)
- imaginary (2)
- include (1)
- include? (6)
- included (1)
-
included
_ modules (1) -
incomplete
_ input? (1) - index (5)
- infinite? (3)
- inherited (1)
- initialize (1)
-
initialize
_ copy (1) - inject (3)
- ino (1)
-
inplace
_ mode (1) -
inplace
_ mode= (1) - insert (2)
-
insert
_ output (1) - inspect (29)
-
instance
_ eval (2) -
instance
_ exec (1) -
instance
_ method (1) -
instance
_ methods (1) -
instance
_ of? (1) -
instance
_ variable _ defined? (1) -
instance
_ variable _ get (1) -
instance
_ variable _ set (1) -
instance
_ variables (1) - integer? (2)
- intern (2)
-
internal
_ encoding (2) - invert (1)
- ioctl (1)
- irb (1)
-
is
_ a? (1) - isatty (1)
- isdst (1)
- itself (1)
- join (3)
-
keep
_ if (4) - key (1)
- key? (2)
- keys (2)
- kill (1)
-
kind
_ of? (1) - label (2)
- lambda? (1)
- last (4)
-
last
_ error (1) - lazy (2)
- lcm (1)
- left (1)
- length (7)
- lineno (4)
- lineno= (2)
- lines (14)
- list (1)
- ljust (1)
-
local
_ variable _ defined? (1) -
local
_ variable _ get (1) -
local
_ variable _ set (1) -
local
_ variables (2) - localtime (2)
- lock (1)
- locked? (1)
- lstat (1)
- lstrip (1)
- lstrip! (1)
- magnitude (5)
- map (5)
- map! (2)
-
marshal
_ dump (4) -
marshal
_ load (2) - match (5)
- match? (3)
- max (13)
- max= (1)
-
max
_ by (4) - mday (1)
- member? (3)
- members (1)
- merge (2)
- merge! (2)
- method (1)
-
method
_ added (1) -
method
_ defined? (1) -
method
_ id (1) -
method
_ missing (1) -
method
_ removed (1) -
method
_ undefined (1) - methods (1)
- min (13)
-
min
_ by (4) - minmax (2)
-
minmax
_ by (2) - mode (1)
-
module
_ eval (2) -
module
_ exec (1) -
module
_ function (1) - modulo (3)
- mon (1)
- monday? (1)
- month (1)
- mtime (2)
- name (6)
- name= (1)
-
named
_ captures (2) - names (3)
- nan? (1)
- negative? (3)
- new (1)
- next (4)
- next! (1)
-
next
_ float (1) -
next
_ values (1) - nil? (2)
- nlink (1)
- none? (2)
- nonzero? (1)
- nsec (1)
-
num
_ waiting (1) - numerator (5)
-
object
_ id (1) - oct (1)
- odd? (1)
- offset (2)
- one? (2)
- ord (2)
-
original
_ name (2) - owned? (2)
- owner (2)
- pack (2)
- parameters (3)
- partition (3)
- path (7)
- peek (1)
-
peek
_ values (1) -
pending
_ interrupt? (1) - permutation (2)
- phase (3)
- pid (2)
- pipe? (1)
- polar (2)
- pop (4)
- pos (3)
- pos= (3)
- positive? (3)
-
post
_ match (1) - pow (2)
-
pre
_ match (1) - pred (1)
- prepend (3)
-
prepend
_ features (1) - prepended (1)
-
prev
_ float (1) -
primitive
_ convert (4) -
primitive
_ errinfo (1) - print (2)
- printf (2)
- priority (1)
- priority= (1)
- private (1)
-
private
_ call? (1) -
private
_ class _ method (1) -
private
_ constant (1) -
private
_ instance _ methods (1) -
private
_ method _ defined? (1) -
private
_ methods (1) - product (2)
- protected (1)
-
protected
_ instance _ methods (1) -
protected
_ method _ defined? (1) -
protected
_ methods (1) - public (1)
-
public
_ class _ method (1) -
public
_ constant (1) -
public
_ instance _ method (1) -
public
_ instance _ methods (1) -
public
_ method (1) -
public
_ method _ defined? (1) -
public
_ methods (1) -
public
_ send (2) - push (3)
- putback (2)
- putc (2)
- puts (2)
- quo (3)
- raise (1)
-
raised
_ exception (1) - rand (3)
- rassoc (2)
- rationalize (9)
- rdev (1)
-
rdev
_ major (1) -
rdev
_ minor (1) - read (3)
-
read
_ nonblock (2) - readable? (1)
-
readable
_ real? (1) -
readagain
_ bytes (1) - readbyte (2)
- readchar (2)
- readline (6)
- readlines (6)
- readpartial (2)
- real (2)
- real? (2)
- reason (1)
- receiver (3)
- rect (2)
- rectangular (2)
- reduce (3)
- refine (1)
- regexp (1)
- rehash (1)
- reject (7)
- reject! (4)
- remainder (2)
-
remove
_ class _ variable (1) -
remove
_ const (1) -
remove
_ instance _ variable (1) -
remove
_ method (1) - reopen (3)
-
repeated
_ combination (2) -
repeated
_ permutation (2) - replace (3)
- replacement (1)
- replacement= (1)
- replicate (1)
-
report
_ on _ exception (1) -
report
_ on _ exception= (1) -
respond
_ to? (1) -
respond
_ to _ missing? (1) - result (1)
- resume (1)
-
return
_ value (1) - reverse (2)
- reverse! (2)
-
reverse
_ each (4) - rewind (4)
- rindex (4)
- rjust (1)
- rotate (1)
- rotate! (1)
- round (6)
- rpartition (1)
- rstrip (1)
- rstrip! (1)
- run (1)
-
safe
_ level (1) - sample (4)
- saturday? (1)
- scan (2)
- scrub (3)
- scrub! (3)
- sec (1)
- seed (1)
- seek (3)
- select (9)
- select! (4)
- self (1)
- send (2)
-
set
_ backtrace (1) -
set
_ encoding (6) -
set
_ trace _ func (1) - setbyte (1)
- setgid? (1)
- setuid? (1)
- shift (5)
- shuffle (2)
- shuffle! (2)
- signal (1)
- signaled? (1)
- signm (1)
- signo (1)
-
singleton
_ class (1) -
singleton
_ class? (1) -
singleton
_ method (1) -
singleton
_ method _ added (1) -
singleton
_ method _ removed (1) -
singleton
_ method _ undefined (1) -
singleton
_ methods (1) - size (12)
- size? (1)
- skip (1)
- sleep (1)
- slice (14)
- slice! (9)
-
slice
_ after (4) -
slice
_ before (5) -
slice
_ when (2) - socket? (1)
- sort (4)
- sort! (2)
-
sort
_ by (2) -
sort
_ by! (2) - source (1)
-
source
_ encoding (3) -
source
_ encoding _ name (2) -
source
_ location (3) - split (1)
- squeeze (1)
- squeeze! (1)
-
start
_ with? (1) - stat (1)
- state (1)
- status (2)
- step (8)
- sticky? (1)
- stime (1)
- stime= (1)
- stop? (1)
- stopped? (1)
- stopsig (1)
- store (1)
- strftime (1)
- string (1)
- strip (1)
- strip! (1)
- sub (3)
- sub! (3)
- subsec (1)
- succ (4)
- succ! (1)
- success? (2)
- sum (5)
- sunday? (1)
-
super
_ method (2) - superclass (1)
- swapcase (2)
- swapcase! (1)
- symlink? (1)
- sync (1)
- sync= (1)
- synchronize (1)
- sysread (1)
- sysseek (1)
- syswrite (1)
- tag (1)
- taint (1)
- tainted? (1)
- take (3)
-
take
_ while (6) - tap (1)
- tell (3)
- terminate (1)
- termsig (1)
-
thread
_ variable? (1) -
thread
_ variable _ get (1) -
thread
_ variable _ set (1) - thursday? (1)
- times (2)
-
to
_ a (12) -
to
_ ary (2) -
to
_ binary (1) -
to
_ c (4) -
to
_ enum (4) -
to
_ f (7) -
to
_ h (5) -
to
_ hash (2) -
to
_ i (10) -
to
_ int (3) -
to
_ io (3) -
to
_ path (2) -
to
_ proc (5) -
to
_ r (7) -
to
_ regexp (1) -
to
_ s (28) -
to
_ str (2) -
to
_ sym (2) -
to
_ write _ io (1) - tr (1)
- tr! (1)
-
tr
_ s (1) -
tr
_ s! (1) -
transform
_ values (2) -
transform
_ values! (2) - transpose (1)
- truncate (5)
- trust (1)
-
try
_ lock (1) - tty? (1)
- tuesday? (1)
-
tv
_ nsec (1) -
tv
_ sec (1) -
tv
_ usec (1) - uid (1)
- unbind (1)
-
undef
_ method (1) - ungetbyte (1)
- ungetc (1)
-
unicode
_ normalize (1) -
unicode
_ normalize! (1) -
unicode
_ normalized? (1) - uniq (6)
- uniq! (2)
- unlock (1)
- unpack (1)
- unpack1 (1)
- unshift (1)
- untaint (1)
- untrust (1)
- untrusted? (1)
- upcase (2)
- upcase! (1)
- update (2)
- upto (3)
- usec (1)
- using (1)
- utc (1)
- utc? (1)
-
utc
_ offset (1) - utime (1)
- utime= (1)
-
valid
_ encoding? (1) - value (2)
- value? (1)
- values (2)
-
values
_ at (4) - wait (1)
- wakeup (1)
- warn (1)
- wday (1)
- wednesday? (1)
-
with
_ index (2) -
with
_ object (2) -
world
_ readable? (1) -
world
_ writable? (1) - writable? (1)
-
writable
_ real? (1) - write (2)
-
write
_ nonblock (1) - yday (1)
- year (1)
- yield (2)
- zero? (3)
- zip (6)
- zone (1)
- | (5)
- ~ (2)
検索結果
先頭5件
-
UnboundMethod
# bind(obj) -> Method (24004.0) -
self を obj にバインドした Method オブジェクトを生成して返します。
self を obj にバインドした Method オブジェクトを生成して返します。
@param obj 自身をバインドしたいオブジェクトを指定します。ただしバインドできるのは、
生成元のクラスかそのサブクラスのインスタンスのみです。
@raise TypeError objがbindできないオブジェクトである場合に発生します
//emlist[例][ruby]{
# クラスのインスタンスメソッドの UnboundMethod の場合
class Foo
def foo
"foo"
end
end
# UnboundMethod `m' を生... -
UnboundMethod
# clone -> UnboundMethod (24004.0) -
自身を複製した UnboundMethod オブジェクトを作成して返します。
自身を複製した UnboundMethod オブジェクトを作成して返します。
//emlist[例][ruby]{
a = String.instance_method(:size)
b = a.clone
a == b # => true
//} -
UnboundMethod
# eql?(other) -> bool (24004.0) -
自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に true を返します。そうでない場合に false を返します。
自身と other が同じクラスあるいは同じモジュールの同じメソッドを表す場合に
true を返します。そうでない場合に false を返します。
@param other 自身と比較したいオブジェクトを指定します。
//emlist[例][ruby]{
a = String.instance_method(:size)
b = String.instance_method(:size)
p a == b #=> true
c = Array.instance_method(:size)
p a == c ... -
UnboundMethod
# hash -> Integer (24004.0) -
自身のハッシュ値を返します。
自身のハッシュ値を返します。
//emlist[例][ruby]{
a = method(:==).unbind
b = method(:eql?).unbind
p a.eql? b # => true
p a.hash == b.hash # => true
p [a, b].uniq.size # => 1
//} -
UnboundMethod
# inspect -> String (24004.0) -
self を読みやすい文字列として返します。
self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect -
UnboundMethod
# name -> Symbol (24004.0) -
このメソッドの名前を返します。
このメソッドの名前を返します。
//emlist[例][ruby]{
a = String.instance_method(:size)
a.name # => :size
//} -
UnboundMethod
# original _ name -> Symbol (24004.0) -
オリジナルのメソッド名を返します。
オリジナルのメソッド名を返します。
//emlist[例][ruby]{
class C
def foo; end
alias bar foo
end
C.instance_method(:bar).original_name # => :foo
//}
@see Method#original_name -
UnboundMethod
# owner -> Class | Module (24004.0) -
このメソッドが定義されている class か module を返します。
このメソッドが定義されている class か module を返します。
//emlist[例][ruby]{
Integer.instance_method(:to_s).owner # => Integer
Integer.instance_method(:to_c).owner # => Numeric
Integer.instance_method(:hash).owner # => Kernel
//} -
UnboundMethod
# parameters -> [object] (24004.0) -
UnboundMethod オブジェクトの引数の情報を返します。
UnboundMethod オブジェクトの引数の情報を返します。
詳しくは Method#parameters を参照してください。
@see Proc#parameters, Method#parameters -
UnboundMethod
# source _ location -> [String , Integer] | nil (24004.0) -
ソースコードのファイル名と行番号を配列で返します。
...nil を返します。
//emlist[例][ruby]{
require 'time'
Time.instance_method(:zone).source_location # => nil
Time.instance_method(:httpdate).source_location # => ["/Users/user/.rbenv/versions/2.4.3/lib/ruby/2.4.0/time.rb", 654]
//}
@see Proc#source_location, Method#source_location... -
UnboundMethod
# super _ method -> UnboundMethod | nil (24004.0) -
self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ クトにして返します。
self 内で super を実行した際に実行されるメソッドを UnboundMethod オブジェ
クトにして返します。
@see Method#super_method -
UnboundMethod
# to _ s -> String (24004.0) -
self を読みやすい文字列として返します。
self を読みやすい文字列として返します。
詳しくは Method#inspect を参照してください。
//emlist[例][ruby]{
String.instance_method(:count).inspect # => "#<UnboundMethod: String#count>"
//}
@see Method#inspect -
UncaughtThrowError
# tag -> object (24004.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
# to _ s -> String (24004.0) -
self を tag を含む文字列表現にして返します。
self を tag を含む文字列表現にして返します。
//emlist[例][ruby]{
def do_complicated_things
throw :uncaught_label
end
begin
do_complicated_things
rescue UncaughtThrowError => ex
p ex.to_s # => "uncaught throw :uncaught_label"
end
//} -
UncaughtThrowError
# value -> object (24004.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
//} -
Warning
# warn(message) -> nil (24004.0) -
引数 message を標準エラー出力 $stderr に出力します。
引数 message を標準エラー出力 $stderr に出力します。
Kernel.#warnの挙動を変更する際は、このメソッドではなくクラスメソッドであるWarning.warnをオーバーライドする必要があります。
@param message 出力するオブジェクトを指定します。
@param category 警告のカテゴリを指定します。サポートされている category については Warning.[] を参照してください。
@see Kernel.#warn, Warning.warn