1285件ヒット
[1-100件を表示]
(0.079秒)
別のキーワード
クラス
- Array (117)
- BasicObject (48)
- Bignum (6)
- Class (12)
- Complex (6)
-
Encoding
:: Converter (24) - Exception (12)
-
File
:: Stat (12) - Fixnum (12)
- Float (36)
- Hash (20)
- IO (12)
- Integer (72)
- Method (7)
- Module (156)
- Numeric (72)
- Object (120)
- Proc (55)
- Range (107)
- Rational (12)
- Set (9)
- String (148)
- Symbol (12)
- Thread (24)
-
Thread
:: SizedQueue (30) - Time (12)
- UnboundMethod (12)
モジュール
- Comparable (24)
- Enumerable (96)
キーワード
- != (12)
- % (12)
- << (81)
- <= (61)
- <=> (120)
- == (12)
- === (24)
- [] (12)
- add (3)
- add? (3)
-
backtrace
_ locations (24) - bind (12)
- call (12)
-
class
_ variables (12) - concat (21)
-
const
_ source _ location (12) - cover? (19)
- div (12)
- divmod (24)
- downto (24)
- enq (10)
-
enum
_ for (24) - include (12)
- include? (12)
- inherited (12)
- initialize (12)
-
insert
_ output (12) -
instance
_ eval (24) -
instance
_ methods (12) -
instance
_ of? (12) -
is
_ a? (12) -
kind
_ of? (12) - max (128)
-
method
_ defined? (12) - methods (12)
- min (128)
- modulo (12)
- pack (21)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ method _ defined? (12) - push (10)
- remainder (12)
- replacement= (12)
- scrub (36)
- scrub! (36)
-
set
_ backtrace (12) - split (19)
-
to
_ enum (24) -
undef
_ method (12) - unpack (12)
- yield (12)
検索結果
先頭5件
-
Module
# <(other) -> bool | nil (18145.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...す。
@param other 比較対象のモジュールやクラス
@raise TypeError other がクラスやモジュールではない場合に発生します。
//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
end
class Qux
end
p Bar < Foo # => true
p Baz < Bar #......=> true
p Baz < Foo # => true
p Baz < Qux # => nil
p Baz > Qux # => nil
p Foo < Object.new # => in `<': compared with non class/module (TypeError)
//}... -
Hash
# <(other) -> bool (18127.0) -
self が other のサブセットである場合に真を返します。
...サブセットである場合に真を返します。
@param other 自身と比較したい Hash オブジェクトを指定します。
//emlist[例][ruby]{
h1 = {a:1, b:2}
h2 = {a:1, b:2, c:3}
h1 < h2 # => true
h2 < h1 # => false
h1 < h1 # => false
//}
@see Hash#<=, Hash#>=, Hash#>... -
Comparable
# <(other) -> bool (18121.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Integer
# <(other) -> bool (18121.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Float
# <(other) -> bool (18115.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
Fixnum
# <(other) -> bool (18109.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。... -
Float
# <=(other) -> bool (6115.0) -
比較演算子。数値として等しいまたは小さいか判定します。
...ます。
@param other 比較対象の数値
@return self よりも other の方が大きい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # =... -
Module
# <=>(other) -> Integer | nil (6115.0) -
self と other の継承関係を比較します。
...@param other 比較対象のクラスやモジュール
//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
end
class Qux
end
p Bar <=> Foo # => -1
p Baz <=> Bar # => -1
p Baz <=> Foo # => -1
p Baz <=> Qux # => nil
p Qux <=> Baz # => nil
p Baz <=>... -
Thread
:: SizedQueue # <<(obj) -> () (6115.0) -
キューに与えられたオブジェクトを追加します。
...に実行を譲ります。
その後、キューに与えられたオブジェクトを追加します。
@param obj キューに追加したいオブジェクトを指定します。
@param non_block true を与えると、キューが一杯の時に例外 ThreadError が発生します。
@see... -
String
# <<(other) -> self (6110.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...を末尾に追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"
p str # => "stringXXX"
str << "YYY"
p str # => "stringXXXYYY"
str << 65 # 文字AのASCIIコード
p str # => "stringXXXY...