10007件ヒット
[1-100件を表示]
(0.157秒)
クラス
-
ARGF
. class (247) - Array (623)
- BasicObject (55)
- Bignum (60)
- Class (11)
- Complex (170)
- Data (12)
- Dir (365)
- Encoding (33)
-
Encoding
:: Converter (55) -
Encoding
:: UndefinedConversionError (11) - Enumerator (101)
-
Enumerator
:: ArithmeticSequence (84) -
Enumerator
:: Chain (36) -
Enumerator
:: Lazy (127) - Exception (29)
- FalseClass (33)
- File (405)
-
File
:: Stat (22) - Fixnum (60)
- Float (184)
- Hash (631)
- IO (502)
- Integer (314)
- KeyError (38)
- LoadError (11)
- MatchData (270)
- Method (214)
- Module (235)
- Mutex (4)
- NilClass (39)
- NoMethodError (36)
- Numeric (172)
- Object (252)
- Proc (11)
-
Process
:: Status (22) - Random (33)
- Range (185)
- Rational (132)
- Refinement (3)
- Regexp (85)
- RubyVM (1)
-
RubyVM
:: AbstractSyntaxTree :: Node (6) -
RubyVM
:: InstructionSequence (66) - String (861)
- Struct (132)
- Symbol (164)
- SyntaxError (2)
- SystemCallError (11)
- Thread (555)
-
Thread
:: Backtrace :: Location (77) -
Thread
:: ConditionVariable (36) -
Thread
:: Mutex (72) -
Thread
:: Queue (129) -
Thread
:: SizedQueue (102) - ThreadGroup (66)
- Time (207)
- TracePoint (22)
- TrueClass (33)
- UnboundMethod (130)
- UncaughtThrowError (30)
モジュール
- Comparable (55)
- Enumerable (319)
-
File
:: Constants (42) - FileTest (33)
- GC (27)
-
GC
:: Profiler (11) - Kernel (231)
- Marshal (66)
- Math (77)
- ObjectSpace (55)
- Process (77)
-
Process
:: GID (55) -
Process
:: UID (55) -
RubyVM
:: AbstractSyntaxTree (8)
オブジェクト
- ENV (231)
キーワード
- != (11)
- !~ (11)
-
$ LOAD _ PATH (11) -
$ ~ (11) - % (56)
- & (72)
- * (50)
- ** (50)
- + (89)
-
/ (60) - < (67)
- << (35)
- <= (67)
- <=> (121)
- == (234)
- === (65)
- =~ (37)
- > (67)
- >= (67)
- >> (6)
-
CLOCK
_ THREAD _ CPUTIME _ ID (11) - ConditionVariable (9)
- DEBUG (11)
- DEBUG= (11)
- Default (11)
-
FNM
_ DOTMATCH (11) -
FNM
_ PATHNAME (11) - Hash (11)
-
LOCK
_ SH (11) - MACTURKISH (11)
-
MAJOR
_ VERSION (11) -
MINOR
_ VERSION (11) -
MUTEX
_ FOR _ THREAD _ EXCLUSIVE (5) - MacTurkish (11)
-
PATH
_ SEPARATOR (11) -
RUBY
_ COPYRIGHT (11) -
RUBY
_ PATCHLEVEL (11) -
SCRIPT
_ LINES _ _ (11) -
SEEK
_ HOLE (11) -
SHARE
_ DELETE (9) - SizedQueue (9)
- String (11)
- Thread (11)
- ThreadGroup (11)
- WNOHANG (11)
- [] (181)
- []= (55)
- ^ (50)
-
_ _ method _ _ (11) -
abort
_ on _ exception (22) -
absolute
_ path (33) - add (11)
-
add
_ trace _ func (11) -
alias
_ method (11) - alive? (11)
- angle (11)
- arg (11)
- args (11)
- arity (22)
- assoc (11)
- at (11)
- backtrace (11)
-
backtrace
_ locations (33) -
base
_ label (11) - begin (17)
-
bind
_ call (10) - binread (11)
- binwrite (11)
- birthtime (31)
-
bit
_ length (17) - broadcast (9)
- bsearch (44)
-
bsearch
_ index (18) - byteoffset (4)
- byteslice (22)
- bytesplice (3)
- call (22)
- caller (11)
-
caller
_ locations (22) - captures (11)
- casecmp (22)
- casecmp? (16)
- catch (22)
- cbrt (11)
- ceildiv (2)
- center (11)
- chain (6)
-
change
_ privilege (22) - chardev? (33)
- chars (50)
- chdir (44)
- children (26)
- chmod (11)
- chomp (22)
- chomp! (11)
- chop (22)
- chop! (11)
- chown (22)
- chr (33)
- chroot (11)
- chunk (33)
-
chunk
_ while (19) -
class
_ variables (11) - clear (20)
-
clock
_ gettime (11) - clone (11)
- close (18)
- closed? (9)
- coerce (33)
- collect (24)
-
compare
_ by _ identity (11) -
compare
_ by _ identity? (11) - compile (11)
-
compile
_ option (11) - concat (30)
-
const
_ defined? (11) -
const
_ get (11) -
const
_ source _ location (5) - constants (11)
- convpath (11)
-
copy
_ stream (22) - count (11)
-
count
_ objects (11) - current (11)
- curry (20)
- daemon (11)
- deconstruct (1)
-
deconstruct
_ keys (9) -
default
_ proc (11) - delete (11)
-
delete
_ if (11) - deq (18)
- detach (11)
- difference (6)
- directory? (11)
- div (28)
- divmod (39)
-
drop
_ while (55) - dump (22)
- each (285)
-
each
_ byte (55) -
each
_ char (66) -
each
_ child (40) -
each
_ codepoint (55) -
each
_ cons (22) -
each
_ entry (22) -
each
_ grapheme _ cluster (14) -
each
_ index (22) -
each
_ key (22) -
each
_ line (129) -
each
_ object (44) -
each
_ pair (66) -
each
_ slice (22) -
each
_ value (22) -
each
_ with _ index (22) -
each
_ with _ object (22) - empty? (24)
- enclose (11)
- enclosed? (11)
- end (17)
-
end
_ with? (11) - enq (18)
- entries (22)
-
enum
_ for (44) - eql? (148)
- equal? (44)
- erf (11)
- erfc (11)
-
error
_ char (11) -
exclude
_ end? (6) - exclusive (11)
-
executable
_ real? (11) - exit (22)
- fdiv (50)
- fetch (73)
- fill (22)
- filter (18)
- filter! (12)
- finish (11)
- first (12)
- flatten (11)
- fnmatch (11)
- fnmatch? (11)
- foreach (66)
- fork (11)
- format (11)
- frexp (11)
- gamma (11)
- getpriority (11)
- gets (48)
- gm (22)
-
grapheme
_ clusters (14) - group (11)
-
group
_ by (11) - grpowned? (11)
- gsub (33)
- gsub! (22)
-
handle
_ interrupt (11) - hash (165)
- hex (11)
- home (22)
- hour (11)
-
ignore
_ deadlock (3) -
import
_ methods (3) - include? (11)
- inherited (11)
- insert (22)
-
insert
_ output (11) - inspect (83)
-
instance
_ methods (11) - intersect? (3)
- intersection (5)
- invert (22)
- join (22)
-
keep
_ if (17) - key (7)
- key? (11)
- keys (11)
- kill (22)
- label (11)
- last (12)
-
last
_ match (22) -
latest
_ gc _ info (11) - lchmod (11)
- lchown (11)
- length (93)
- lgamma (11)
- lineno (11)
- lines (16)
- list (22)
- ljust (11)
- load (11)
- local (22)
-
locale
_ charmap (11) - lock (9)
- locked? (9)
- main (11)
- map (24)
-
marshal
_ dump (44) -
marshal
_ load (22) - match (55)
- match? (24)
- max (51)
-
max
_ by (44) - member? (22)
- merge (22)
- merge! (32)
-
method
_ defined? (6) -
method
_ id (11) -
method
_ missing (11) -
method
_ removed (11) - methods (11)
- min (42)
- minmax (10)
- mkdir (11)
- mktime (22)
- modulo (39)
- month (11)
- name (9)
- name= (9)
-
named
_ captures (11) - names (11)
- new (186)
-
num
_ waiting (9) - offset (22)
- open (66)
-
original
_ name (22) - owned? (9)
- owner (22)
- pack (19)
- parameters (22)
-
parse
_ file (8) - pass (11)
- path (92)
-
pending
_ interrupt? (22) - permutation (22)
- phase (11)
- polar (11)
- pop (18)
-
post
_ match (11) - pow (22)
-
pre
_ match (11) - prepend (11)
- priority (11)
- priority= (11)
-
private
_ call? (8) -
private
_ class _ method (15) -
private
_ instance _ methods (11) -
private
_ method _ defined? (11) -
private
_ methods (11) -
protected
_ instance _ methods (11) -
protected
_ method _ defined? (11) -
protected
_ methods (11) -
public
_ instance _ methods (11) -
public
_ method _ defined? (6) -
public
_ methods (11) - push (29)
- putc (22)
- quo (33)
- raise (11)
- rassoc (11)
-
raw
_ data (11) -
re
_ exchange (22) -
re
_ exchangeable? (22) - read (55)
- readable? (11)
-
readable
_ real? (11) - readchar (22)
- readline (24)
- readlines (57)
- readlink (11)
- realdirpath (11)
- realpath (11)
- receiver (18)
- regexp (11)
- rehash (22)
- reject (33)
- reject! (22)
- remainder (25)
-
remove
_ method (11) - reopen (22)
- replace (44)
-
report
_ on _ exception (16) -
report
_ on _ exception= (8) -
resolve
_ feature _ path (1) - restore (11)
-
reverse
_ each (46) - rewind (6)
- rjust (11)
- rmdir (11)
- round (19)
-
ruby2
_ keywords (5) -
ruby2
_ keywords _ hash? (5) - run (11)
-
safe
_ level (7) - scrub (33)
- scrub! (33)
-
search
_ convpath (11) - seek (11)
- select (23)
- select! (17)
-
set
_ trace _ func (11) - setpriority (11)
- shift (51)
- shuffle (22)
- shuffle! (22)
- signal (9)
-
singleton
_ method _ removed (11) -
singleton
_ methods (11) - size (116)
- size? (11)
- sleep (9)
- slice (77)
- slice! (33)
-
slice
_ when (21) -
source
_ location (22) - split (28)
- sprintf (11)
- sqrt (11)
- squeeze (11)
- squeeze! (11)
- start (11)
-
start
_ with? (16) - stat (11)
- status (11)
- step (30)
- stop (11)
- stop? (11)
- store (11)
- strftime (11)
- string (11)
- sub (33)
- sub! (22)
-
super
_ method (20) - switch (44)
- synchronize (11)
- syscall (11)
- sysopen (11)
- sysseek (11)
- tag (10)
-
take
_ while (66) - tally (8)
- terminate (11)
- then (6)
-
thread
_ variable? (11) -
thread
_ variable _ get (11) - throw (11)
- thursday? (11)
-
to
_ a (33) -
to
_ enum (44) -
to
_ h (53) -
to
_ path (24) -
to
_ proc (20) -
to
_ s (83) -
trace
_ var (22) -
transform
_ keys (17) -
transform
_ keys! (17) -
transform
_ values (16) -
transform
_ values! (16) - truncate (22)
-
try
_ convert (11) -
try
_ lock (9) - ungetc (11)
- union (6)
- unlink (11)
- unlock (9)
- unpack (11)
- unshift (11)
-
untrace
_ var (11) - update (44)
- utc (22)
- value (21)
-
values
_ at (11) -
verify
_ compaction _ references (5) - wait (9)
- wakeup (11)
- with (2)
-
with
_ index (32) -
with
_ object (22) -
world
_ readable? (22) -
world
_ writable? (22) - writable? (11)
-
writable
_ real? (11) - write (22)
-
yield
_ self (6) - zero? (11)
- | (61)
検索結果
先頭5件
-
Rational
# -(other) -> Rational | Float (21332.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r - 1 # => (-1/4)
r - 0.5 # => 0.25
//}... -
Array
# -(other) -> Array (21314.0) -
自身から other の要素を取り除いた配列を生成して返します。
...自身から other の要素を取り除いた配列を生成して返します。
要素の同一性は Object#eql? により評価されます。
self 中で重複していて、other中に存在していなかった要素は、その重複が保持されます。
@param other 自身から取......場合は to_ary メソッドによ
る暗黙の型変換を試みます。
@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
[1, 2, 1, 3, 1, 4] - [4, 2] #......=> [1, 1, 3, 1]
[1, 2, 1, 3, 1, 4] - [1, 4] # => [2, 3]
//}......=> [1, 1, 3, 1]
[1, 2, 1, 3, 1, 4] - [1, 4] # => [2, 3]
//}
@see Array#difference... -
Integer
# -(other) -> Numeric (21308.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
4 - 1 #=> 3
//}... -
Complex
# -(other) -> Complex (18314.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
//emlist[例][ruby]{
Complex(1, 2) - Complex(2, 3) # => (-1-1i)
//}... -
Thread
# thread _ variable _ get(key) -> object | nil (18314.0) -
引数 key で指定した名前のスレッドローカル変数を返します。
...意]: Thread#[] でセットしたローカル変数(Fiber ローカル変数)と
異なり、Fiber を切り替えても同じ変数を返す事に注意してください。
例:
Thread.new {
Thread.current.thread_variable_set("foo", "bar") # スレッドローカル
Thread.current["f......oo"] = "bar" # Fiber ローカル
Fiber.new {
Fiber.yield [
Thread.current.thread_variable_get("foo"), # スレッドローカル
Thread.current["foo"], # Fiber ローカル
]
}.resume
}.join.value # => ['bar', nil]
こ......の例の "bar" は Thread#thread_variable_get により得られ
た値で、nil はThread#[] により得られた値です。
@see Thread#thread_variable_set, Thread#[]
@see https://magazine.rubyist.net/articles/0041/0041-200Special-note.html... -
Float
# -(other) -> Float (18308.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 差
4.5 - 1.3 # => 3.2
//}... -
Bignum
# -(other) -> Fixnum | Bignum | Float (18302.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果... -
Fixnum
# -(other) -> Fixnum | Bignum | Float (18302.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果... -
Thread
# thread _ variable?(key) -> bool (18302.0) -
引数 key で指定した名前のスレッドローカル変数が存在する場合に true、そ うでない場合に false を返します。
...に true、そ
うでない場合に false を返します。
@param key 変数名を String か Symbol で指定します。
me = Thread.current
me.thread_variable_set(:oliver, "a")
me.thread_variable?(:oliver) # => true
me.thread_variable?(:stanley) # => false
[注意]: Thread#......[] でセットしたローカル変数(Fiber ローカル変数)が
対象ではない事に注意してください。
@see Thread#thread_variable_get, Thread#[]... -
Thread
:: MUTEX _ FOR _ THREAD _ EXCLUSIVE -> Mutex (18302.0) -
Thread.exclusive用のMutexオブジェクトです。 (private constant です。)
...Thread.exclusive用のMutexオブジェクトです。......Thread.exclusive用のMutexオブジェクトです。
(private constant です。)... -
Enumerable
# each _ with _ index(*args) -> Enumerator (15402.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...り返すような
Enumerator を返します。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args イテレータメソッド (each など) にそのまま......。
//emlist[例][ruby]{
[5, 10, 15].each_with_index do |n, idx|
p [n, idx]
end
# => [5, 0]
# [10, 1]
# [15, 2]
//}
//emlist[引数ありの例][ruby]{
require 'stringio'
StringIO.new("foo|bar|baz").each_with_index("|") do |s, i|
p [s, i]
end
# => ["foo|", 0]
# ["bar|", 1]
# ["baz"......, 2]
//}
@see Enumerator#with_index... -
Enumerable
# each _ with _ index(*args) {|item , index| . . . } -> self (15402.0) -
要素とそのインデックスをブロックに渡して繰り返します。
...り返すような
Enumerator を返します。
Enumerator#with_index は offset 引数を受け取りますが、
each_with_index は受け取りません (引数はイテレータメソッドにそのまま渡されます)。
@param args イテレータメソッド (each など) にそのまま......。
//emlist[例][ruby]{
[5, 10, 15].each_with_index do |n, idx|
p [n, idx]
end
# => [5, 0]
# [10, 1]
# [15, 2]
//}
//emlist[引数ありの例][ruby]{
require 'stringio'
StringIO.new("foo|bar|baz").each_with_index("|") do |s, i|
p [s, i]
end
# => ["foo|", 0]
# ["bar|", 1]
# ["baz"......, 2]
//}
@see Enumerator#with_index...