18744件ヒット
[1-100件を表示]
(0.358秒)
クラス
-
ARGF
. class (777) - Array (1775)
- BasicObject (154)
- Bignum (78)
- Binding (78)
- Class (47)
- Complex (483)
- Data (18)
- Dir (127)
- Encoding (77)
-
Encoding
:: Converter (187) -
Encoding
:: InvalidByteSequenceError (77) -
Encoding
:: UndefinedConversionError (55) - Enumerator (171)
-
Enumerator
:: ArithmeticSequence (84) -
Enumerator
:: Chain (30) -
Enumerator
:: Lazy (378) -
Enumerator
:: Yielder (27) - Exception (117)
- FalseClass (55)
- Fiber (32)
- File (131)
-
File
:: Stat (462) - Fixnum (81)
- Float (431)
- FrozenError (5)
- Hash (987)
- IO (994)
- Integer (758)
- KeyError (14)
- LoadError (11)
- LocalJumpError (22)
- MatchData (213)
- Method (247)
- Module (898)
- Mutex (14)
- NameError (40)
- NilClass (83)
- NoMethodError (19)
- Numeric (547)
- Object (771)
-
ObjectSpace
:: WeakMap (22) - Proc (116)
-
Process
:: Status (165) -
Process
:: Tms (88) - Random (88)
- Range (386)
- Rational (255)
- Refinement (3)
- Regexp (195)
-
RubyVM
:: AbstractSyntaxTree :: Node (42) -
RubyVM
:: InstructionSequence (119) - SignalException (22)
- StopIteration (11)
- String (1775)
- Struct (247)
- Symbol (338)
- SyntaxError (2)
- SystemCallError (11)
- SystemExit (22)
- Thread (402)
-
Thread
:: Backtrace :: Location (77) -
Thread
:: ConditionVariable (27) -
Thread
:: Mutex (63) -
Thread
:: Queue (117) -
Thread
:: SizedQueue (102) - ThreadGroup (44)
- Time (616)
- TracePoint (194)
- TrueClass (55)
- UnboundMethod (163)
- UncaughtThrowError (30)
モジュール
- Comparable (79)
- Enumerable (1294)
- GC (11)
- Warning (8)
キーワード
- ! (11)
- != (11)
- !~ (11)
- % (62)
- & (72)
- * (83)
- ** (50)
- + (89)
- +@ (20)
- - (83)
- -@ (48)
-
/ (49) - < (67)
- << (85)
- <= (67)
- <=> (132)
- == (234)
- === (87)
- =~ (48)
- > (67)
- >= (67)
- >> (34)
- [] (241)
- []= (121)
- ^ (50)
-
_ _ id _ _ (11) -
_ _ send _ _ (22) -
_ dump (11) -
abort
_ on _ exception (11) -
abort
_ on _ exception= (11) - abs (33)
- abs2 (22)
-
absolute
_ path (22) - add (11)
-
add
_ trace _ func (11) - advise (11)
-
alias
_ method (11) - alive? (14)
- all? (41)
- allbits? (7)
- allocate (11)
- ancestors (11)
- angle (33)
- any? (46)
- anybits? (7)
- append (7)
-
append
_ features (11) - arg (33)
- args (11)
- arity (33)
-
ascii
_ compatible? (11) - asctime (11)
- assoc (22)
- at (11)
- atime (22)
- attr (33)
-
attr
_ accessor (11) -
attr
_ reader (11) -
attr
_ writer (11) - autoclose= (11)
- autoclose? (11)
- autoload (11)
- autoload? (11)
- backtrace (22)
-
backtrace
_ locations (33) -
base
_ label (22) - begin (28)
- between? (22)
- bind (11)
-
bind
_ call (10) - binding (11)
- 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 (61)
- bytesize (11)
- byteslice (33)
- bytesplice (6)
- call (22)
-
callee
_ id (11) - capitalize (22)
- capitalize! (11)
- captures (11)
- casecmp (22)
- casecmp? (16)
- casefold? (11)
- cause (11)
- ceil (49)
- ceildiv (2)
- center (11)
- chain (6)
- chardev? (11)
- chars (50)
- children (12)
- chmod (11)
- chomp! (11)
- chop! (11)
- chown (11)
- chr (33)
- chunk (33)
-
chunk
_ while (19) - clamp (24)
- class (11)
-
class
_ eval (22) -
class
_ exec (11) -
class
_ variable _ defined? (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) -
class
_ variables (11) - clear (42)
- clone (66)
- close (51)
-
close
_ on _ exec= (11) -
close
_ on _ exec? (11) -
close
_ read (11) -
close
_ write (11) - closed? (31)
- codepoints (50)
- coerce (33)
- collect (55)
- collect! (22)
-
collect
_ concat (33) - combination (22)
- compact (6)
- compact! (19)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - concat (38)
- conj (22)
- conjugate (22)
-
const
_ added (2) -
const
_ defined? (11) -
const
_ get (11) -
const
_ missing (11) -
const
_ set (11) -
const
_ source _ location (5) - constants (11)
- convert (22)
- convpath (11)
- coredump? (11)
- count (77)
- cover? (17)
- cstime (11)
- cstime= (11)
- ctime (33)
- curry (20)
- cutime (11)
- cutime= (11)
- cycle (44)
- day (11)
- deconstruct (2)
-
deconstruct
_ keys (2) - dedup (2)
- default (22)
- default= (11)
-
default
_ proc (11) -
default
_ proc= (11) -
define
_ method (22) -
define
_ singleton _ method (22) -
defined
_ class (11) - delete (55)
- delete! (11)
-
delete
_ at (11) -
delete
_ if (44) -
delete
_ prefix (7) -
delete
_ prefix! (7) -
delete
_ suffix (7) -
delete
_ suffix! (7) - denominator (55)
-
deprecate
_ constant (9) - deq (18)
-
destination
_ encoding (33) -
destination
_ encoding _ name (22) - detect (22)
- dev (11)
-
dev
_ major (11) -
dev
_ minor (11) - difference (6)
- dig (27)
- digits (22)
- directory? (11)
- disable (22)
- disasm (11)
- disassemble (11)
- display (11)
- div (28)
- divmod (39)
- downcase (22)
- downcase! (11)
- downto (22)
- drop (22)
-
drop
_ while (55) - dst? (11)
- dummy? (11)
- dup (44)
- each (288)
-
each
_ byte (66) -
each
_ char (66) -
each
_ child (12) -
each
_ codepoint (66) -
each
_ cons (22) -
each
_ entry (22) -
each
_ grapheme _ cluster (14) -
each
_ index (22) -
each
_ key (22) -
each
_ line (132) -
each
_ pair (44) -
each
_ slice (22) -
each
_ value (22) -
each
_ with _ index (22) -
each
_ with _ object (22) - eager (5)
- empty? (60)
- enable (22)
- enabled? (11)
- enclose (11)
- enclosed? (11)
- encode (33)
- encode! (22)
- encoding (33)
- end (28)
-
end
_ with? (16) - enq (18)
- entries (17)
-
enum
_ for (44) - eof (22)
- eof? (22)
- eql? (148)
- equal? (44)
- errno (11)
-
error
_ bytes (11) -
error
_ char (11) - eval (22)
-
eval
_ script (6) - even? (17)
- event (11)
- except (3)
- exception (22)
-
exclude
_ end? (17) - executable? (11)
-
executable
_ real? (11) - exit (11)
-
exit
_ value (11) - exited? (11)
- exitstatus (11)
- extend (11)
-
extend
_ object (11) - extended (11)
-
external
_ encoding (22) - fcntl (11)
- fdiv (50)
- feed (11)
- fetch (73)
-
fetch
_ values (18) - file (11)
- file? (11)
- filename (11)
- fileno (32)
- fill (66)
- filter (54)
- filter! (24)
-
filter
_ map (15) - find (22)
-
find
_ all (33) -
find
_ index (66) - finish (11)
- finite? (27)
- first (67)
-
first
_ column (6) -
first
_ lineno (17) -
fixed
_ encoding? (11) -
flat
_ map (33) - flatten (22)
- flatten! (11)
- flock (11)
- floor (49)
- flush (11)
- force (11)
-
force
_ encoding (11) - freeze (22)
- friday? (11)
- frozen? (11)
- ftype (11)
-
garbage
_ collect (11) - gcd (11)
- gcdlcm (11)
- getbyte (33)
- getc (22)
- getgm (11)
- getlocal (22)
- gets (66)
- getutc (11)
- gid (11)
- gmt? (11)
-
gmt
_ offset (11) - gmtime (11)
- gmtoff (11)
-
grapheme
_ clusters (14) - grep (33)
-
grep
_ v (31) - group (11)
-
group
_ by (22) - grpowned? (11)
- gsub (44)
- gsub! (44)
-
has
_ key? (11) -
has
_ value? (11) - hash (165)
- hex (11)
- hour (11)
- i (11)
- id2name (11)
-
ignore
_ deadlock (3) -
ignore
_ deadlock= (3) - imag (22)
- imaginary (22)
-
import
_ methods (3) - include (11)
- include? (66)
- included (11)
-
included
_ modules (11) -
incomplete
_ input? (11) - index (51)
- infinite? (27)
- inherited (11)
- initialize (11)
-
initialize
_ copy (11) - inject (33)
- ino (11)
-
inplace
_ mode (11) -
inplace
_ mode= (11) - insert (22)
-
insert
_ output (11) - inspect (350)
-
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? (22)
- intern (22)
-
internal
_ encoding (22) - intersect? (3)
- intersection (5)
- invert (11)
- ioctl (11)
- irb (8)
-
is
_ a? (11) - isdst (11)
- itself (11)
- join (33)
-
keep
_ if (44) - key (18)
- key? (22)
- keys (22)
- kill (11)
-
kind
_ of? (11) - label (22)
- lambda? (11)
- last (45)
-
last
_ column (6) -
last
_ error (11) -
last
_ lineno (6) - lazy (22)
- lcm (11)
- left (11)
- length (82)
- lineno (44)
- lineno= (22)
- lines (106)
- list (11)
-
local
_ variable _ defined? (11) -
local
_ variable _ get (11) -
local
_ variable _ set (11) -
local
_ variables (19) - localtime (22)
- lock (11)
- locked? (11)
- lstat (11)
- lstrip! (11)
- magnitude (58)
- map (55)
- map! (22)
-
marshal
_ dump (22) -
marshal
_ load (11) - match (55)
- match? (24)
- max (111)
- max= (9)
-
max
_ by (44) - mday (11)
- member? (33)
- members (13)
- merge (22)
- merge! (22)
- method (11)
-
method
_ added (11) -
method
_ defined? (11) -
method
_ id (11) -
method
_ missing (11) -
method
_ removed (11) -
method
_ undefined (11) - methods (11)
- min (113)
-
min
_ by (44) - minmax (42)
-
minmax
_ by (22) - mode (11)
-
module
_ eval (22) -
module
_ exec (11) -
module
_ function (19) - modulo (39)
- mon (11)
- monday? (11)
- month (11)
- mtime (22)
- name (68)
- name= (9)
-
named
_ captures (22) - names (33)
- negative? (26)
- new (11)
- next (44)
- next! (11)
-
next
_ float (10) -
next
_ values (11) - nil? (11)
- nlink (11)
- nobits? (7)
- none? (47)
- nonzero? (11)
- nsec (11)
-
num
_ waiting (9) - numerator (55)
-
object
_ id (11) - oct (11)
- odd? (11)
- offset (22)
- one? (47)
- ord (22)
-
original
_ name (22) - overlap? (1)
- owned? (22)
- owner (22)
- pack (19)
- parameters (39)
- partition (33)
- path (68)
- peek (11)
-
peek
_ values (11) -
pending
_ interrupt? (11) - permutation (22)
- phase (33)
- pid (22)
- pipe? (11)
- polar (22)
- pop (29)
- pos (33)
- positive? (26)
- pow (22)
-
pre
_ match (11) - pread (7)
- pred (11)
- prepend (37)
-
prepend
_ features (11) - prepended (11)
-
prev
_ float (10) -
primitive
_ convert (44) -
primitive
_ errinfo (11) - priority (11)
- priority= (11)
- private (23)
-
private
_ call? (8) -
private
_ class _ method (15) -
private
_ constant (11) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
private
_ methods (11) - product (22)
- protected (23)
-
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 (29)
- putback (22)
- putc (22)
- pwrite (7)
- quo (33)
- raise (26)
-
raised
_ exception (11) - rand (33)
- rassoc (11)
- rationalize (99)
- rdev (11)
-
rdev
_ major (11) -
rdev
_ minor (11) - read (33)
-
read
_ nonblock (22) - readable? (11)
-
readable
_ real? (11) -
readagain
_ bytes (11) - readbyte (22)
- readchar (22)
- readline (66)
- readlines (66)
- readpartial (22)
- real (22)
- real? (22)
- reason (11)
- receiver (42)
- rect (22)
- rectangular (22)
- reduce (33)
- refine (11)
- regexp (11)
- rehash (11)
- reject (77)
- reject! (44)
- remainder (25)
-
remove
_ class _ variable (11) -
remove
_ const (11) -
remove
_ instance _ variable (11) -
remove
_ method (11) - reopen (33)
-
repeated
_ combination (22) -
repeated
_ permutation (22) - replace (33)
- replacement (11)
- replacement= (11)
- replicate (11)
-
report
_ on _ exception (8) -
report
_ on _ exception= (8) -
respond
_ to? (11) -
respond
_ to _ missing? (11) - result (11)
- resume (11)
-
return
_ value (11) - reverse (22)
- reverse! (22)
-
reverse
_ each (46) - rewind (50)
- rindex (44)
- rotate (11)
- rotate! (11)
- round (63)
- rpartition (11)
- rstrip! (11)
-
ruby2
_ keywords (10) - run (11)
-
safe
_ level (7) - sample (44)
- saturday? (11)
- scan (22)
- scrub (33)
- scrub! (33)
- sec (11)
- seed (11)
- seek (33)
- select (99)
- select! (44)
- self (11)
- send (22)
-
set
_ backtrace (11) -
set
_ encoding (66) -
set
_ encoding _ by _ bom (5) -
set
_ trace _ func (11) - setbyte (11)
- setgid? (11)
- setuid? (11)
- shift (40)
- shuffle (22)
- shuffle! (22)
- signal (9)
- signaled? (11)
- signm (11)
- signo (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 (155)
- size? (11)
- skip (11)
- sleep (11)
- slice (161)
- slice! (99)
-
slice
_ after (42) -
slice
_ before (55) -
slice
_ when (21) - socket? (11)
- sort (44)
- sort! (22)
-
sort
_ by (22) -
sort
_ by! (22) - source (11)
-
source
_ encoding (33) -
source
_ encoding _ name (22) -
source
_ location (39) - split (17)
- squeeze (11)
- squeeze! (11)
-
start
_ with? (12) - stat (11)
- state (11)
- status (22)
- step (118)
- sticky? (11)
- stime (11)
- stime= (11)
- stop? (11)
- stopped? (11)
- stopsig (11)
- store (11)
- strftime (11)
- strip! (11)
- sub (33)
- sub! (33)
- subclasses (3)
- subsec (11)
- succ (40)
- succ! (11)
- success? (22)
- sum (49)
- sunday? (11)
-
super
_ method (20) - superclass (11)
- swapcase (22)
- swapcase! (11)
- symlink? (11)
- sync= (11)
- synchronize (11)
- sysread (11)
- sysseek (11)
- syswrite (11)
- tag (10)
- taint (9)
- tainted? (9)
- take (33)
-
take
_ while (66) - tally (8)
- tap (11)
- tell (33)
- terminate (11)
- termsig (11)
- then (12)
-
thread
_ variable? (11) -
thread
_ variable _ get (11) -
thread
_ variable _ set (11) - thursday? (11)
- times (22)
-
to
_ a (94) -
to
_ ary (22) -
to
_ binary (9) -
to
_ c (44) -
to
_ enum (44) -
to
_ f (55) -
to
_ h (42) -
to
_ hash (22) -
to
_ i (110) -
to
_ int (33) -
to
_ io (22) -
to
_ path (11) -
to
_ proc (38) -
to
_ r (44) -
to
_ regexp (11) -
to
_ s (278) -
to
_ str (11) -
to
_ sym (22) -
to
_ write _ io (11) - tr (11)
- tr! (11)
-
tr
_ s (11) -
tr
_ s! (11) - transfer (3)
-
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - transpose (11)
- truncate (55)
- trust (9)
-
try
_ lock (11) - tuesday? (11)
-
tv
_ nsec (11) -
tv
_ sec (11) -
tv
_ usec (11) - type (6)
- uid (11)
- unbind (11)
-
undef
_ method (11) - ungetbyte (11)
- ungetc (11)
-
unicode
_ normalize (10) -
unicode
_ normalize! (10) -
unicode
_ normalized? (10) - union (6)
- uniq (49)
- uniq! (22)
- unlock (11)
- unpack (11)
- unpack1 (8)
- unshift (11)
- untaint (9)
- untrust (9)
- untrusted? (9)
- upcase (22)
- upcase! (11)
- update (22)
- upto (33)
- usec (11)
- using (11)
- utc (11)
- utc? (11)
-
utc
_ offset (11) - utime (11)
- utime= (11)
-
valid
_ encoding? (11) - value (21)
- value? (11)
- values (22)
-
values
_ at (44) - wait (9)
- wakeup (11)
- warn (8)
- wday (11)
- wednesday? (11)
-
with
_ index (32) -
with
_ object (22) -
world
_ readable? (11) -
world
_ writable? (11) - writable? (11)
-
writable
_ real? (11) - write (22)
-
write
_ nonblock (11) - yday (11)
- year (11)
- yield (22)
-
yield
_ self (14) - zero? (36)
- zip (55)
- zone (11)
- | (61)
- ~ (22)
検索結果
先頭5件
- Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding - Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String - Encoding
:: InvalidByteSequenceError # source _ encoding -> Encoding - Encoding
:: InvalidByteSequenceError # source _ encoding _ name -> Encoding - Enumerator
:: ArithmeticSequence # end -> Numeric | nil
-
Encoding
:: InvalidByteSequenceError # destination _ encoding -> Encoding (20103.0) -
エラーを発生させた変換の変換先のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換先のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#source_encoding,
Encoding::UndefinedConversionError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (20103.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding... -
Encoding
:: InvalidByteSequenceError # source _ encoding -> Encoding (20103.0) -
エラーを発生させた変換の変換元のエンコーディングを Encoding オブジェクトで返します。
...エラーを発生させた変換の変換元のエンコーディングを Encoding
オブジェクトで返します。
@see Encoding::InvalidByteSequenceError#destination_encoding,
Encoding::UndefinedConversionError#source_encoding... -
Encoding
:: InvalidByteSequenceError # source _ encoding _ name -> Encoding (20103.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#source_encoding... -
Enumerator
:: ArithmeticSequence # end -> Numeric | nil (20103.0) -
末項(終端)を返します。
...末項(終端)を返します。
@see Enumerator::ArithmeticSequence#begin... -
Enumerator
:: ArithmeticSequence # exclude _ end? -> bool (20103.0) -
末項(終端)を含まないとき真を返します。
末項(終端)を含まないとき真を返します。 -
Numeric
# coerce(other) -> [Numeric] (17303.0) -
自身と other が同じクラスになるよう、自身か other を変換し [other, self] という配列にして返します。
...自身と other が同じクラスになるよう、自身か other を変換し [other, self] という配列にして返します。
デフォルトでは self と other を Float に変換して [other, self] という配列にして返します。
Numeric のサブクラスは、このメソ......erce のソースです。other が自身の知らない数値クラスであった場合、
super を呼んでいることに注意して下さい。
//emlist[例][ruby]{
# lib/rational.rb より
def coerce(other)
if other.kind_of?(Float)
return other, self.to_f
elsif other.kind_of?(Inte......ger)
return Rational.new!(other, 1), self
else
super
end
end
//}
数値クラスの算術演算子は通常自分と演算できないクラスをオペランドとして受け
取ると coerce を使って自分とオペランドを変換した上で演算を行います。
以下は R... -
Object
# singleton _ method(name) -> Method (17303.0) -
オブジェクトの特異メソッド name をオブジェクト化した Method オブ ジェクトを返します。
...name をオブジェクト化した Method オブ
ジェクトを返します。
@param name メソッド名をSymbol またはStringで指定します。
@raise NameError 定義されていないメソッド名を引数として与えると発生します。
//emlist[][ruby]{
class Demo
def in......e(n)
@iv = n
end
def hello()
"Hello, @iv = #{@iv}"
end
end
k = Demo.new(99)
def k.hi
"Hi, @iv = #{@iv}"
end
m = k.singleton_method(:hi) # => #<Method: #<Demo:0xf8b0c3c4 @iv=99>.hi>
m.call #=> "Hi, @iv = 99"
m = k.singleton_method(:hello) # => NameError
//}
@see Module#instance......_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#method... -
Exception
# exception(error _ message) -> Exception (17215.0) -
引数を指定しない場合は self を返します。引数を指定した場合 自身のコピー を生成し Exception#message 属性を error_message にして返します。
...合は self を返します。引数を指定した場合 自身のコピー
を生成し Exception#message 属性を error_message にして返します。
Kernel.#raise は、実質的に、例外オブジェクトの exception
メソッドの呼び出しです。
@param error_message エラー......メッセージを表す文字列を指定します。
//emlist[例][ruby]{
begin
# ... # 何か処理
rescue => e
raise e.exception("an error occurs during hogehoge process") # 詳しいエラーメッセージ
end
//}... -
BasicObject
# singleton _ method _ added(name) -> object (17203.0) -
特異メソッドが追加された時にインタプリタから呼び出されます。
...Module#method_addedを使います。
@param name 追加されたメソッド名が Symbol で渡されます。
//emlist[例][ruby]{
class Foo
def singleton_method_added(name)
puts "singleton method \"#{name}\" was added"
end
end
obj = Foo.new
def obj.foo
end
#=> singleton method "foo"......was added
//}
@see Module#method_added,BasicObject#singleton_method_removed,BasicObject#singleton_method_undefined...