1726件ヒット
[1-100件を表示]
(0.077秒)
別のキーワード
クラス
- Array (211)
- BasicObject (55)
- Bignum (9)
- Class (17)
- Complex (27)
-
Encoding
:: Converter (22) -
Enumerator
:: Lazy (33) - Exception (22)
-
File
:: Stat (11) - Fixnum (15)
- Float (33)
- Hash (130)
- IO (11)
- Integer (77)
- Method (38)
- Module (148)
- Numeric (66)
- Object (121)
- Proc (50)
- Range (123)
- Rational (11)
-
RubyVM
:: InstructionSequence (75) - String (135)
- Symbol (11)
- Thread (22)
-
Thread
:: Backtrace :: Location (11) -
Thread
:: SizedQueue (27) - Time (11)
- TracePoint (6)
- UnboundMethod (11)
モジュール
- Comparable (22)
- Enumerable (165)
キーワード
- ! (11)
- != (11)
- % (11)
- << (71)
- <= (67)
- <=> (121)
- == (11)
- === (22)
- [] (11)
-
absolute
_ path (11) - ancestors (11)
-
backtrace
_ locations (33) -
base
_ label (22) - bind (11)
-
bit
_ length (17) - bsearch (44)
-
bsearch
_ index (18) - call (11)
-
chunk
_ while (11) -
class
_ variables (11) - concat (19)
-
const
_ source _ location (5) - cover? (17)
-
delete
_ if (22) - disasm (11)
- disassemble (11)
- div (11)
- divmod (22)
- downto (22)
-
drop
_ while (33) - enq (9)
-
enum
_ for (22) - filter (12)
- include (11)
- include? (11)
- inherited (11)
- initialize (11)
-
insert
_ output (11) - inspect (11)
-
instance
_ eval (22) -
instance
_ methods (11) -
instance
_ of? (11) -
instruction
_ sequence (6) -
is
_ a? (11) -
kind
_ of? (11) - label (11)
- lazy (11)
- max (118)
-
method
_ defined? (11) - methods (11)
- min (118)
- modulo (11)
- pack (19)
- path (11)
-
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ method _ defined? (11) - push (9)
- reject (22)
- reject! (22)
- remainder (11)
- replacement= (11)
- scrub (33)
- scrub! (33)
- select (22)
-
set
_ backtrace (11) -
slice
_ when (11) - sort (22)
- split (17)
- subclasses (3)
-
super
_ method (10) - superclass (3)
-
take
_ while (66) -
to
_ a (11) -
to
_ ary (11) -
to
_ binary (9) -
to
_ enum (22) -
to
_ h (12) -
to
_ s (11) -
undef
_ method (11) - unpack (11)
- yield (11)
検索結果
先頭5件
-
Module
# <(other) -> bool | nil (18151.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 (18133.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 (18127.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Integer
# <(other) -> bool (18127.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Float
# <(other) -> bool (18121.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
Complex
# <(other) -> bool (18119.0) -
@undef
...
@undef... -
Fixnum
# <(other) -> bool (18115.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。... -
Float
# <=(other) -> bool (6121.0) -
比較演算子。数値として等しいまたは小さいか判定します。
...ます。
@param other 比較対象の数値
@return self よりも other の方が大きい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # =... -
Module
# <=(other) -> bool | nil (6121.0) -
比較演算子。self が other の子孫であるか、self と other が 同一クラスである場合、 true を返します。 self が other の先祖である場合、false を返します。
...
@param other 比較対象のモジュールやクラス
@raise TypeError other がクラスやモジュールではない場合に発生します。
@see 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
//}... -
Thread
:: SizedQueue # <<(obj) -> () (6121.0) -
キューに与えられたオブジェクトを追加します。
...す。
その後、キューに与えられたオブジェクトを追加します。
@param obj キューに追加したいオブジェクトを指定します。
@param non_block true を与えると、キューが一杯の時に例外 ThreadError が発生します。
@see Thread::Queue#push... -
Complex
# <=(other) -> bool (6119.0) -
@undef
...
@undef...