13183件ヒット
[1-100件を表示]
(0.173秒)
クラス
-
ARGF
. class (730) - Array (1526)
- BasicObject (110)
- Bignum (48)
- Binding (60)
- Class (33)
- Complex (209)
- Data (10)
- Dir (50)
- Encoding (55)
-
Encoding
:: Converter (143) -
Encoding
:: InvalidByteSequenceError (77) -
Encoding
:: UndefinedConversionError (44) - Enumerator (171)
-
Enumerator
:: ArithmeticSequence (84) -
Enumerator
:: Chain (30) -
Enumerator
:: Lazy (378) -
Enumerator
:: Yielder (27) - Exception (84)
- FalseClass (22)
- Fiber (19)
- File (44)
-
File
:: Stat (253) - Fixnum (42)
- Float (279)
- Hash (467)
- IO (623)
- Integer (314)
- LoadError (11)
- LocalJumpError (11)
- MatchData (235)
- Method (76)
- Module (699)
- NameError (40)
- NilClass (149)
- NoMethodError (19)
- Numeric (322)
- Object (417)
-
ObjectSpace
:: WeakMap (11) - Proc (112)
-
Process
:: Status (110) - Random (110)
- Range (386)
- Rational (315)
- Regexp (77)
-
RubyVM
:: AbstractSyntaxTree :: Node (42) -
RubyVM
:: InstructionSequence (97) - SignalException (22)
- StopIteration (11)
- String (1321)
- Struct (59)
- Symbol (135)
- SyntaxError (2)
- SystemCallError (11)
- SystemExit (11)
- Thread (281)
-
Thread
:: Backtrace :: Location (77) -
Thread
:: ConditionVariable (27) -
Thread
:: Mutex (36) -
Thread
:: Queue (63) -
Thread
:: SizedQueue (77) - ThreadGroup (22)
- Time (154)
- TracePoint (194)
- TrueClass (22)
- UnboundMethod (120)
- UncaughtThrowError (30)
モジュール
- Comparable (24)
- Enumerable (1294)
- GC (11)
- Warning (8)
キーワード
- % (29)
- & (22)
- * (28)
- ** (28)
- + (34)
- - (17)
- -@ (8)
-
/ (17) - << (33)
- <=> (55)
- == (50)
- === (33)
- =~ (6)
- >> (11)
- [] (219)
- []= (121)
- ^ (11)
-
_ _ id _ _ (11) -
_ _ send _ _ (22) -
_ dump (11) -
abort
_ on _ exception (11) -
abort
_ on _ exception= (11) - abs (47)
- abs2 (22)
-
absolute
_ path (22) -
add
_ trace _ func (11) - advise (11)
-
alias
_ method (11) - all? (35)
- allbits? (7)
- ancestors (11)
- angle (33)
- any? (56)
- anybits? (7)
- append (7)
-
append
_ features (11) - arg (33)
- args (11)
- arity (33)
-
ascii
_ compatible? (11) -
ascii
_ only? (11) - asctime (11)
- assoc (22)
- at (11)
- attr (33)
-
attr
_ accessor (11) -
attr
_ reader (11) -
attr
_ writer (11) - autoload (11)
- autoload? (11)
- backtrace (22)
-
backtrace
_ locations (33) -
base
_ label (22) - begin (28)
- between? (22)
-
bind
_ call (10) - binding (11)
- binmode (11)
- binmode? (11)
- blksize (11)
- blocks (11)
- broadcast (9)
- bsearch (44)
-
bsearch
_ index (18) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (47)
- byteslice (11)
- bytesplice (3)
- call (11)
-
callee
_ id (11) - capitalize (19)
- capitalize! (11)
- captures (11)
- casecmp (22)
- casecmp? (16)
- cause (11)
- ceil (26)
- center (11)
- chain (6)
- chars (36)
- children (6)
- chr (33)
- chunk (33)
-
chunk
_ while (19) - clamp (24)
-
class
_ eval (11) -
class
_ variable _ defined? (11) -
class
_ variable _ get (11) -
class
_ variable _ set (11) -
class
_ variables (11) - clear (11)
- clone (44)
-
close
_ read (11) - codepoints (43)
- coerce (22)
- collect (55)
- collect! (11)
-
collect
_ concat (33) - combination (22)
- compact (6)
- compact! (19)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - concat (38)
- conjugate (22)
-
const
_ added (2) -
const
_ defined? (11) -
const
_ get (11) -
const
_ missing (11) -
const
_ set (11) -
const
_ source _ location (5) - constants (11)
- convert (11)
- convpath (11)
- count (77)
- cover? (17)
- crypt (11)
- ctime (11)
- cycle (44)
- day (11)
- deconstruct (2)
-
deconstruct
_ keys (2) - default (22)
-
default
_ proc (11) -
define
_ method (22) -
define
_ singleton _ method (22) -
defined
_ class (11) - delete (33)
- delete! (11)
-
delete
_ at (11) -
delete
_ if (22) - 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 (11)
- disable (22)
- disasm (11)
- disassemble (11)
- display (11)
- div (6)
- divmod (11)
- downcase (22)
- downcase! (11)
- downto (11)
- drop (33)
-
drop
_ while (55) - dup (33)
- each (244)
-
each
_ byte (44) -
each
_ char (55) -
each
_ child (6) -
each
_ codepoint (66) -
each
_ cons (22) -
each
_ entry (22) -
each
_ grapheme _ cluster (14) -
each
_ index (22) -
each
_ key (11) -
each
_ line (132) -
each
_ pair (22) -
each
_ slice (22) -
each
_ value (11) -
each
_ with _ index (22) -
each
_ with _ object (22) - eager (5)
- enable (22)
- enabled? (11)
- enclose (11)
- enclosed? (11)
- end (28)
- enq (18)
- entries (17)
-
enum
_ for (44) - eof (11)
- eof? (11)
- eql? (22)
- errno (11)
-
error
_ bytes (11) -
error
_ char (11) - eval (22)
-
eval
_ script (6) - event (11)
- exception (11)
-
exclude
_ end? (17) - exitstatus (11)
- extend (11)
-
external
_ encoding (22) - fcntl (11)
- fdatasync (11)
- fdiv (28)
- feed (11)
- fetch (40)
- filename (11)
- fileno (11)
- fill (55)
- filter (36)
- filter! (24)
-
filter
_ map (15) - find (22)
-
find
_ all (33) -
find
_ index (66) - finite? (19)
- first (78)
-
first
_ column (6) -
first
_ lineno (6) -
fixed
_ encoding? (11) -
flat
_ map (33) - flatten (22)
- flatten! (11)
- flock (11)
- floor (27)
- force (11)
- ftype (11)
-
garbage
_ collect (11) - getbyte (11)
- getc (11)
- gets (57)
- gid (11)
-
grapheme
_ clusters (14) - grep (33)
-
grep
_ v (31) -
group
_ by (22) - grpowned? (11)
- gsub (44)
- gsub! (44)
- hash (165)
- hex (11)
- id2name (11)
-
ignore
_ deadlock (3) -
ignore
_ deadlock= (3) - imag (22)
- imaginary (22)
- include? (44)
- included (11)
-
incomplete
_ input? (11) - index (51)
- infinite? (11)
- inherited (11)
- initialize (11)
-
initialize
_ copy (11) - inject (33)
- ino (11)
-
inplace
_ mode (11) -
inplace
_ mode= (11) - insert (11)
-
insert
_ output (11) - inspect (207)
-
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) -
internal
_ encoding (22) - intersect? (3)
- intersection (5)
- invert (11)
- ioctl (11)
- join (33)
-
keep
_ if (22) - key (7)
- key? (11)
-
kind
_ of? (11) - label (22)
- lambda? (11)
- last (56)
-
last
_ column (6) -
last
_ error (11) -
last
_ lineno (6) - lazy (22)
- left (11)
- length (49)
- lineno (33)
- lineno= (11)
- lines (85)
- ljust (11)
-
local
_ variable _ defined? (11) -
local
_ variable _ get (11) -
local
_ variable _ set (11) -
local
_ variables (19) - magnitude (58)
- map (55)
- map! (11)
-
marshal
_ dump (22) -
marshal
_ load (11) - match (55)
- match? (8)
- max (127)
- max= (9)
-
max
_ by (44) - mday (11)
- member? (22)
- method (11)
-
method
_ added (11) -
method
_ defined? (11) -
method
_ id (11) -
method
_ missing (11) -
method
_ removed (11) -
method
_ undefined (11) - min (118)
-
min
_ by (44) - minmax (42)
-
minmax
_ by (22) - mode (11)
-
module
_ eval (11) -
module
_ function (15) - modulo (6)
- monday? (11)
- name (68)
- name= (9)
-
named
_ captures (22) - names (33)
- nan? (11)
- negative? (26)
- new (11)
- next (33)
- next! (11)
-
next
_ float (10) -
next
_ values (11) - nil? (11)
- nlink (11)
- nobits? (7)
- none? (47)
- nonzero? (11)
-
num
_ waiting (9) - numerator (55)
- offset (22)
- one? (47)
- ord (22)
-
original
_ name (22) - overlap? (1)
- owned? (20)
- owner (22)
- pack (19)
- parameters (19)
- partition (33)
- path (81)
- peek (11)
-
peek
_ values (11) -
pending
_ interrupt? (11) - permutation (22)
- phase (33)
- pid (11)
- polar (22)
- pop (40)
- pos (11)
- pos= (11)
- positive? (8)
-
post
_ match (11) - pow (22)
-
pre
_ match (11) - pread (7)
- prepend (37)
-
prepend
_ features (11) - prepended (11)
-
prev
_ float (10) -
primitive
_ convert (44) -
primitive
_ errinfo (11) - print (22)
- printf (22)
- 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) - protected (19)
-
protected
_ instance _ methods (11) -
protected
_ method _ defined? (11) - public (19)
-
public
_ class _ method (15) -
public
_ constant (11) -
public
_ instance _ method (11) -
public
_ instance _ methods (11) -
public
_ method (11) -
public
_ method _ defined? (11) -
public
_ send (22) - push (16)
- putback (22)
- puts (22)
- quo (22)
- raise (5)
-
raised
_ exception (11) - rand (33)
- rassoc (22)
- rationalize (99)
- rdev (11)
-
rdev
_ major (11) -
rdev
_ minor (11) - read (33)
-
read
_ nonblock (22) -
readagain
_ bytes (11) - readbyte (22)
- readchar (22)
- readline (66)
- readlines (66)
- readpartial (22)
- real (22)
- real? (11)
- reason (11)
- receiver (9)
- rectangular (22)
- reduce (33)
- refine (11)
- reject (55)
- 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 (22)
- 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
_ each (35) - rewind (28)
- rindex (44)
- rjust (11)
- rotate (11)
- rotate! (11)
- round (41)
- rpartition (11)
-
ruby2
_ keywords (5) - run (11)
-
safe
_ level (7) - sample (44)
- scan (22)
- seed (11)
- seek (11)
- select (66)
- select! (44)
- self (11)
- send (22)
-
set
_ backtrace (11) -
set
_ encoding (66) -
set
_ trace _ func (11) - shift (51)
- shuffle (11)
- shuffle! (11)
- 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) - size (94)
- size? (11)
- sleep (9)
- slice (110)
- slice! (99)
-
slice
_ after (42) -
slice
_ before (55) -
slice
_ when (21) - socket? (11)
- sort (22)
-
sort
_ by (22) -
sort
_ by! (11) -
source
_ encoding (11) -
source
_ encoding _ name (22) -
source
_ location (39) - split (17)
- squeeze (11)
- squeeze! (11)
-
start
_ with? (11) - stat (11)
- state (11)
- status (22)
- step (107)
- stopsig (11)
- strftime (11)
- string (11)
- sub (33)
- sub! (33)
- subsec (11)
- succ (22)
- succ! (11)
- sum (38)
- sunday? (11)
- superclass (11)
- swapcase (19)
- swapcase! (11)
- symlink? (11)
- sync= (11)
- synchronize (9)
- sysread (11)
- tag (10)
- taint (9)
- tainted? (9)
- take (33)
-
take
_ while (66) - tally (8)
- tell (11)
- terminate (11)
- termsig (11)
- then (6)
-
thread
_ variable _ get (11) - times (11)
-
to
_ a (83) -
to
_ binary (9) -
to
_ c (11) -
to
_ enum (44) -
to
_ f (50) -
to
_ h (28) -
to
_ i (66) -
to
_ int (11) -
to
_ path (24) -
to
_ proc (5) -
to
_ r (77) -
to
_ s (239) - 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)
- type (6)
- uid (11)
-
undef
_ method (11) - ungetc (11)
-
unicode
_ normalize (10) -
unicode
_ normalize! (10) -
unicode
_ normalized? (10) - union (6)
- uniq (60)
- uniq! (22)
- unlock (9)
- unpack (11)
- unpack1 (8)
- unshift (11)
- untaint (9)
- untrusted? (3)
- upcase (19)
- upcase! (11)
- upto (33)
-
valid
_ encoding? (11) - value (21)
-
values
_ at (11) - wait (9)
- warn (8)
- wday (11)
- wednesday? (11)
-
with
_ index (32) -
with
_ object (22) -
world
_ readable? (11) -
world
_ writable? (11) - write (18)
-
write
_ nonblock (11) - yday (11)
- year (11)
- yield (22)
-
yield
_ self (7) - zip (55)
- | (11)
検索結果
先頭5件
-
Encoding
:: InvalidByteSequenceError # destination _ encoding _ name -> String (21303.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#destination_encoding... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (18503.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...on#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if Date.n......0, month, -1).day == 31
raise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in `get......_exception'", "test.rb:15:in `<main>'"]
//}
@see Exception#backtrace... -
Rational
# rationalize(eps = 0) -> Rational (18403.0) -
自身から eps で指定した許容誤差の範囲に収まるような Rational を返 します。
...な Rational を返
します。
eps を省略した場合は self を返します。
@param eps 許容する誤差
//emlist[例][ruby]{
r = Rational(5033165, 16777216)
r.rationalize # => (5033165/16777216)
r.rationalize(Rational(0.01)) # => (3/10)
r.rationalize(Rational(0.1))... -
Random
# rand(range) -> Integer | Float (18309.0) -
一様な擬似乱数を発生させます。
...形式では 0 以上 max 未満の数を返します。
max が正の整数なら整数を、正の実数なら実数を返します。
0 や負の数を指定することは出来ません。
三番目の形式では range で指定された範囲の値を返します。
range の始端と終端......場合は実数を返します。
rangeが終端を含まない(つまり ... で生成した場合)には終端の値は乱数の範囲から除かれます。
range.end - range.begin が整数を返す場合は range.begin + self.rand((range.end - range.begin) + e)
の値を返します(e は終......)。
range.end - range.begin が実数を返す場合も同様です。
このため range が Time の場合などにもうまく動作します。
引数が実数でも範囲でもない場合は Object#to_int で変換した値が指定されたものとして扱います。
@param max 乱数... -
Encoding
:: InvalidByteSequenceError # source _ encoding _ name -> Encoding (18303.0) -
エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換元のエンコーディングを文字列で返します。
@see Encoding::InvalidByteSequenceError#source_encoding... -
Encoding
:: UndefinedConversionError # destination _ encoding _ name -> String (18303.0) -
エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
...エラーを発生させた変換の変換先のエンコーディングを文字列で返します。
@see Encoding::UndefinedConversionError#destination_encoding... -
Method
# original _ name -> Symbol (18303.0) -
オリジナルのメソッド名を返します。
...オリジナルのメソッド名を返します。
//emlist[例][ruby]{
class C
def foo; end
alias bar foo
end
C.new.method(:bar).original_name # => :foo
//}
@see UnboundMethod#original_name... -
Object
# untaint -> self (18303.0) -
オブジェクトの「汚染マーク」を取り除きます。
...ェクトの汚染に関してはspec/safelevelを参照してください。
ruby -e 'p ARGV[0].tainted?;t=+ARGV[0];t.untaint;p t.tainted?' hoge
# => true
# false
このメソッドは Ruby 2.7 から deprecated で、Ruby 3.2 で削除予定です。
@see Object#taint,Object#tainted?......何もせずに self を返します。
このメソッドは Ruby 2.7 から deprecated で、Ruby 3.2 で削除予定です。
@see Object#taint,Object#tainted?... -
Random
# rand -> Float (18209.0) -
一様な擬似乱数を発生させます。
...形式では 0 以上 max 未満の数を返します。
max が正の整数なら整数を、正の実数なら実数を返します。
0 や負の数を指定することは出来ません。
三番目の形式では range で指定された範囲の値を返します。
range の始端と終端......場合は実数を返します。
rangeが終端を含まない(つまり ... で生成した場合)には終端の値は乱数の範囲から除かれます。
range.end - range.begin が整数を返す場合は range.begin + self.rand((range.end - range.begin) + e)
の値を返します(e は終......)。
range.end - range.begin が実数を返す場合も同様です。
このため range が Time の場合などにもうまく動作します。
引数が実数でも範囲でもない場合は Object#to_int で変換した値が指定されたものとして扱います。
@param max 乱数... -
Random
# rand(max) -> Integer | Float (18209.0) -
一様な擬似乱数を発生させます。
...形式では 0 以上 max 未満の数を返します。
max が正の整数なら整数を、正の実数なら実数を返します。
0 や負の数を指定することは出来ません。
三番目の形式では range で指定された範囲の値を返します。
range の始端と終端......場合は実数を返します。
rangeが終端を含まない(つまり ... で生成した場合)には終端の値は乱数の範囲から除かれます。
range.end - range.begin が整数を返す場合は range.begin + self.rand((range.end - range.begin) + e)
の値を返します(e は終......)。
range.end - range.begin が実数を返す場合も同様です。
このため range が Time の場合などにもうまく動作します。
引数が実数でも範囲でもない場合は Object#to_int で変換した値が指定されたものとして扱います。
@param max 乱数...