クラス
- Array (148)
- BasicObject (55)
- Bignum (6)
- Class (25)
- Complex (27)
-
Encoding
:: Converter (22) -
Enumerator
:: Lazy (77) -
Enumerator
:: Yielder (11) - Exception (22)
-
File
:: Stat (11) - Fixnum (9)
- Float (44)
- Hash (124)
- IO (11)
- Integer (55)
- Method (16)
- Module (148)
- Numeric (22)
- Object (77)
- Proc (28)
- Range (72)
- Rational (11)
-
RubyVM
:: InstructionSequence (53) - String (91)
- Symbol (11)
- Thread (22)
-
Thread
:: Backtrace :: Location (11) -
Thread
:: Queue (27) -
Thread
:: SizedQueue (18) - Time (11)
モジュール
- Comparable (22)
- Enumerable (187)
キーワード
- ! (11)
- != (11)
- << (65)
- <= (67)
- <=> (129)
- == (11)
- === (11)
-
absolute
_ path (11) - ancestors (11)
-
backtrace
_ locations (33) -
base
_ label (22) -
bit
_ length (17) - bsearch (22)
-
bsearch
_ index (9) - call (11)
-
chunk
_ while (11) -
class
_ variables (11) - concat (19)
-
const
_ source _ location (5) - cover? (17)
-
delete
_ if (22) - disassemble (11)
- divmod (11)
- downto (11)
-
drop
_ while (55) - enq (18)
-
enum
_ for (22) - filter (12)
- include (11)
- include? (11)
- inherited (11)
- initialize (11)
-
insert
_ output (11) -
instance
_ eval (22) -
instance
_ methods (11) -
instance
_ of? (11) -
is
_ a? (11) -
kind
_ of? (11) - label (11)
- lazy (11)
- max (82)
-
method
_ defined? (11) - methods (11)
- min (82)
- modulo (11)
- pack (19)
-
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ method _ defined? (11) - push (18)
- reject (11)
- reject! (22)
- replacement= (11)
- scrub (11)
- scrub! (11)
- select (22)
-
set
_ backtrace (11) -
slice
_ when (11) - sort (22)
- split (17)
- subclasses (3)
-
super
_ method (10) - superclass (11)
-
take
_ while (66) -
to
_ ary (11) -
to
_ binary (9) -
to
_ enum (22) -
to
_ h (17) -
undef
_ method (11) - unpack (11)
- yield (11)
検索結果
先頭5件
-
Module
# <(other) -> bool | nil (21339.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...比較演算子。self が other の子孫である場合、 true を返します。
self が other の先祖か同一のクラス/モジュールである場合、false を返します。
継承関係にないクラス同士の比較では
nil を返します。
@param 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 (TypeErr... -
Comparable
# <(other) -> bool (21215.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Float
# <(other) -> bool (21209.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
Complex
# <(other) -> bool (21203.0) -
@undef
@undef -
Hash
# <(other) -> bool (18221.0) -
self が other のサブセットである場合に真を返します。
...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#<=,... -
Integer
# <(other) -> bool (18215.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Fixnum
# <(other) -> bool (18203.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。... -
Module
# <=(other) -> bool | nil (9303.0) -
比較演算子。self が other の子孫であるか、self と other が 同一クラスである場合、 true を返します。 self が other の先祖である場合、false を返します。
...比較演算子。self が other の子孫であるか、self と other が
同一クラスである場合、 true を返します。
self が other の先祖である場合、false を返します。
継承関係にないクラス同士の比較では
nil を返します。
@param other 比較......Module#<
//emlist[例][ruby]{
module Foo; end
module Bar
include Foo
end
module Baz
prepend Foo
end
Bar.ancestors # => [Bar, Foo]
Foo <= Bar # => false
Bar <= Foo # => true
Baz.ancestors # => [Foo, Baz]
Foo <= Baz # => false
Baz <= Foo # => true
Foo <= Foo # => true
Foo <= Object # => nil
//... -
Class
# subclasses -> [Class] (9221.0) -
自身が直接のスーパークラスになっている(特異クラスを除く)クラスの配列を返します。 返り値の配列の順序は未定義です。
...を除く)クラスの配列を返します。
返り値の配列の順序は未定義です。
//emlist[例][ruby]{
class A; end
class B < A; end
class C < B; end
class D < A; end
A.subclasses # => [D, B]
B.subclasses # => [C]
C.subclasses # => []
//}
@see Class#superclass... -
Class
# superclass -> Class | nil (9209.0) -
自身のスーパークラスを返します。
...ます。
//emlist[例][ruby]{
File.superclass #=> IO
IO.superclass #=> Object
class Foo; end
class Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}
ただし BasicObject.superclass は nil を返します。
//emlist[例][ruby]{
Bas......icObject.superclass #=> nil
//}......icObject.superclass #=> nil
//}
@see Class#subclasses... -
Enumerable
# drop _ while {|element| . . . } -> Array (9209.0) -
ブロックを評価して最初に偽となった要素の手前の要素まで捨て、 残りの要素を配列として返します。
...価して最初に偽となった要素の手前の要素まで捨て、
残りの要素を配列として返します。
ブロックを指定しなかった場合は、Enumerator を返します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5, 0]
a.drop_while {|i| i < 3 } # => [3, 4, 5, 0]
//}...