10438件ヒット
[1-100件を表示]
(0.061秒)
別のキーワード
クラス
-
ARGF
. class (396) - Array (1320)
- BasicObject (144)
- Bignum (69)
- Binding (36)
- Class (36)
- Complex (138)
- Data (12)
- Dir (12)
-
Encoding
:: Converter (108) - Enumerator (84)
-
Enumerator
:: ArithmeticSequence (35) -
Enumerator
:: Lazy (24) - Exception (56)
- FalseClass (36)
- Fiber (34)
- File (36)
-
File
:: Stat (12) - Fixnum (72)
- Float (249)
- Hash (473)
- IO (634)
- Integer (542)
- MatchData (152)
- Method (116)
- Module (972)
- Mutex (2)
- NilClass (67)
- Numeric (222)
- Object (477)
-
ObjectSpace
:: WeakMap (12) - Proc (110)
-
Process
:: Status (36) - Random (72)
- Range (279)
- Rational (204)
- Regexp (72)
- Set (78)
- String (1315)
- Struct (64)
- Symbol (201)
- Thread (185)
-
Thread
:: ConditionVariable (10) -
Thread
:: Mutex (10) -
Thread
:: Queue (30) -
Thread
:: SizedQueue (60) - ThreadGroup (12)
- Time (146)
- TracePoint (7)
- TrueClass (36)
- UnboundMethod (48)
モジュール
- Comparable (87)
- Enumerable (777)
- GC (12)
- Warning (9)
キーワード
- != (12)
- !~ (12)
- % (68)
- & (81)
- * (90)
- ** (54)
- + (93)
-
/ (53) - < (61)
- << (81)
- <= (61)
- <=> (120)
- == (259)
- === (103)
- =~ (52)
- > (61)
- >= (61)
- >> (44)
- [] (318)
- []= (120)
- ^ (57)
-
_ _ send _ _ (24) -
_ dump (12) -
_ load (12) -
abort
_ on _ exception (12) - add (15)
- add? (3)
-
add
_ trace _ func (12) - advise (12)
-
alias
_ method (12) - all? (45)
- allbits? (8)
- any? (48)
- anybits? (8)
- append (8)
- assoc (24)
- at (12)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - autoclose= (12)
- autoload (12)
- autoload? (12)
-
backtrace
_ locations (24) - begin (24)
- between? (12)
- bind (12)
- binding (12)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (12)
- byteslice (36)
- bytesplice (10)
- call (36)
- capitalize (9)
- capitalize! (9)
- casecmp (24)
- casecmp? (18)
- ceil (39)
- ceildiv (3)
- center (12)
- chmod (12)
- chown (12)
- chr (24)
- clamp (15)
-
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - clone (12)
-
close
_ on _ exec= (12) - coerce (24)
- combination (24)
- concat (42)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - constants (12)
- convert (24)
- count (84)
- cover? (19)
- crypt (12)
- curry (46)
- cycle (24)
-
deconstruct
_ keys (13) - default (24)
-
define
_ method (24) -
define
_ singleton _ method (24) - delete (63)
- delete! (12)
- delete? (3)
-
delete
_ at (12) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) -
deprecate
_ constant (12) - deq (20)
- detect (24)
- difference (3)
- dig (30)
- digits (24)
- disjoint? (3)
- display (12)
- div (30)
- divmod (42)
- downcase (9)
- downcase! (9)
- downto (24)
- drop (36)
- dup (12)
- each (168)
-
each
_ cons (24) -
each
_ line (144) -
each
_ slice (24) -
each
_ with _ index (24) -
each
_ with _ object (24) - encode (36)
- encode! (24)
- end (24)
-
end
_ with? (18) - enq (10)
- entries (12)
-
enum
_ for (24) - eql? (162)
- equal? (36)
- eval (12)
- exception (24)
- extend (12)
-
extend
_ object (12) - extended (12)
- fcntl (12)
- fdiv (54)
- feed (12)
- fetch (80)
-
fetch
_ values (20) - fill (72)
- find (24)
-
find
_ index (72) - first (86)
- flatten (24)
- flatten! (12)
- flock (12)
- floor (48)
-
force
_ encoding (12) -
garbage
_ collect (12) - getbyte (12)
- getlocal (24)
- gets (72)
- grep (24)
-
grep
_ v (24) - gsub (48)
- gsub! (48)
-
has
_ key? (12) -
has
_ value? (12) - include (12)
- include? (75)
- included (12)
- index (55)
- inherited (12)
- initialize (12)
- inject (36)
-
inplace
_ mode= (12) - insert (24)
-
insert
_ output (12) - inspect (18)
-
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variable _ set (12) - intersect? (3)
- intersection (9)
- ioctl (12)
-
is
_ a? (12) - join (36)
- key (12)
- key? (24)
-
kind
_ of? (12) - last (62)
- lines (66)
- ljust (12)
-
local
_ variable _ defined? (12) -
local
_ variable _ get (12) - localtime (24)
-
marshal
_ load (24) - match (36)
- max (128)
-
max
_ by (48) - member? (39)
- merge (27)
- merge! (24)
- method (12)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ missing (12) -
method
_ removed (12) -
method
_ undefined (12) - methods (12)
- min (128)
-
min
_ by (48) -
module
_ eval (24) -
module
_ exec (12) -
module
_ function (36) - modulo (42)
-
named
_ captures (12) - new (12)
- nobits? (8)
- none? (45)
- offset (24)
- one? (45)
- overlap? (2)
- pack (21)
- parameters (43)
- partition (12)
-
pending
_ interrupt? (12) - permutation (24)
- pop (44)
- pow (24)
- pread (8)
- prepend (41)
-
prepend
_ features (12) - prepended (12)
-
primitive
_ convert (48) - print (24)
- printf (24)
- priority (12)
- priority= (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) - product (24)
-
proper
_ subset? (3) -
proper
_ superset? (3) - protected (48)
-
protected
_ instance _ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ instance _ method (12) -
public
_ instance _ methods (12) -
public
_ method (12) -
public
_ method _ defined? (12) -
public
_ methods (12) -
public
_ send (24) - push (22)
- putback (24)
- putc (24)
- puts (24)
- pwrite (8)
- quo (36)
- raise (30)
- rand (36)
- rassoc (24)
- rationalize (108)
- read (24)
-
read
_ nonblock (24) - readline (72)
- readlines (72)
- readpartial (24)
- reduce (36)
- refine (12)
- remainder (27)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) - reopen (36)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - replace (27)
- replacement= (12)
-
report
_ on _ exception (9) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - resume (12)
- rindex (48)
- rjust (12)
- rotate (12)
- rotate! (12)
- round (57)
- rpartition (12)
- sample (48)
- scan (24)
- scrub (36)
- scrub! (36)
- seek (36)
- send (24)
-
set
_ backtrace (12) -
set
_ encoding (72) -
set
_ trace _ func (12) - setbyte (12)
- shift (44)
- shuffle! (24)
-
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - sleep (12)
- slice (168)
- slice! (36)
- split (19)
- squeeze (12)
- squeeze! (12)
-
start
_ with? (18) - step (124)
- store (12)
- strftime (12)
- sub (36)
- sub! (36)
- subset? (3)
- subtract (3)
- sum (12)
- superset? (3)
- swapcase (9)
- swapcase! (9)
- sysread (12)
- sysseek (12)
- syswrite (12)
- take (36)
- tally (8)
-
thread
_ variable? (12) -
to
_ a (48) -
to
_ enum (24) -
to
_ h (19) -
to
_ i (33) -
to
_ r (12) -
to
_ s (18) -
to
_ set (6) - tr (12)
- tr! (12)
-
tr
_ s (12) -
tr
_ s! (12) - transfer (4)
-
transform
_ keys (12) -
transform
_ keys! (12) - truncate (33)
-
undef
_ method (12) - ungetbyte (12)
- ungetc (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - union (10)
- unpack (12)
- unshift (12)
- upcase (9)
- upcase! (9)
- update (24)
- upto (36)
- using (12)
- value? (12)
-
values
_ at (48) - wait (10)
- warn (9)
- with (3)
-
with
_ object (24) - write (24)
-
write
_ nonblock (12) - yield (12)
- zip (48)
- | (69)
検索結果
先頭5件
-
Time
# -(sec) -> Time (18157.0) -
自身より sec 秒だけ前の時刻を返します。
...り sec 秒だけ前の時刻を返します。
@param sec 実数を秒を単位として指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - 2592000 # => 2000-01-01 00:00:00 +0900
//}... -
Time
# -(time) -> Float (18147.0) -
自身と time との時刻の差を Float で返します。単位は秒です。
...します。単位は秒です。
@param time 自身との差を算出したい Time オブジェクトを指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00 +0900
p t2 - t # => 2592000.0
//}... -
Array
# -(other) -> Array (18121.0) -
自身から other の要素を取り除いた配列を生成して返します。
...り評価されます。
self 中で重複していて、other中に存在していなかった要素は、その重複が保持されます。
@param other 自身から取り除きたい要素の配列を指定します。
配列以外のオブジェクトを指定した場合は to_a......換を試みます。
@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]
//}......@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]
//}
@see Array#difference... -
Complex
# -(other) -> Complex (18121.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
//emlist[例][ruby]{
Complex(1, 2) - Complex(2, 3) # => (-1-1i)
//}... -
Rational
# -(other) -> Rational | Float (18121.0) -
差を計算します。
...差を計算します。
@param other 自身から引く数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r - 1 # => (-1/4)
r - 0.5 # => 0.25
//}... -
Float
# -(other) -> Float (18115.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 差
4.5 - 1.3 # => 3.2
//}... -
Integer
# -(other) -> Numeric (18115.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果
//emlist[][ruby]{
4 - 1 #=> 3
//}... -
Set
# -(enum) -> Set (18115.0) -
差集合、すなわち、元の集合の要素のうち引数 enum に含まれる要素を取り除いた 新しい集合を作ります。
...い集合を作ります。
@param enum each メソッドが定義されたオブジェクトを指定します。
@raise ArgumentError 引数 enum に each メソッドが定義されていない場合に
発生します。
//emlist[][ruby]{
p Set[10, 20, 30] - Set[10, 20, 40]
# => #<Set:... -
Bignum
# -(other) -> Fixnum | Bignum | Float (18109.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果... -
Fixnum
# -(other) -> Fixnum | Bignum | Float (18109.0) -
算術演算子。差を計算します。
...算術演算子。差を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果... -
Proc
# parameters(lambda: nil) -> [object] (6209.0) -
Proc オブジェクトの引数の情報を返します。
...ック引数
@param lambda true なら lambda として扱ったとき、false なら lambda ではない Proc として
扱ったときの引数の情報を返します。
//emlist[例][ruby]{
prc = lambda{|x, y=42, *other, k_x:, k_y: 42, **k_other, &b|}
prc.parameters #=> x], [:opt......ther|}
p prc.parameters # => x], [:opt, :y], [:rest, :other
prc = lambda{|x, y=42, *other|}
p prc.parameters # => x], [:opt, :y], [:rest, :other
prc = proc{|x, y=42, *other|}
p prc.parameters(lambda: true) # => x], [:opt, :y], [:rest, :other
prc = lambda{|x, y=42, *other|}
p prc.parameters(lambda......: false) # => x], [:opt, :y], [:rest, :other
//}
@see Method#parameters, UnboundMethod#parameters... -
Method
# parameters -> [object] (6203.0) -
Method オブジェクトの引数の情報を返します。
...st[例][ruby]{
m = Class.new{define_method(:m){|x, y=42, *other, k_x:, k_y: 42, **k_other, &b|}}.instance_method(:m)
m.parameters #=> x], [:opt, :y], [:rest, :other], [:keyreq, :k_x], [:key, :k_y], [:keyrest, :k_other], [:block, :b
File.method(:symlink).parameters #=> req
//}
@see Proc#parameters...