619件ヒット
[1-100件を表示]
(0.012秒)
種類
- インスタンスメソッド (553)
- 文書 (44)
- クラス (11)
- 定数 (11)
ライブラリ
- ビルトイン (377)
- bigdecimal (22)
- date (11)
- fiddle (11)
- ipaddr (11)
- openssl (44)
- pathname (11)
- rake (11)
-
rdoc
/ context (11) -
rexml
/ document (22) -
rubygems
/ dependency (11) -
rubygems
/ requirement (11) -
rubygems
/ version (11) -
webrick
/ httpversion (11)
クラス
- Array (51)
- BigDecimal (22)
- Bignum (3)
- Complex (16)
- Date (11)
-
Fiddle
:: Pointer (11) -
File
:: Stat (11) - Fixnum (6)
- Float (44)
-
Gem
:: Dependency (11) -
Gem
:: Requirement (11) -
Gem
:: Version (11) - Hash (9)
- IPAddr (11)
- Integer (22)
- Module (22)
- Numeric (66)
- Object (11)
-
OpenSSL
:: BN (22) -
OpenSSL
:: X509 :: Name (22) - Pathname (11)
-
RDoc
:: Context (11) -
REXML
:: Comment (11) -
REXML
:: Text (11) -
Rake
:: EarlyTime (11) - Range (39)
- Rational (11)
- String (11)
- Symbol (11)
- Time (11)
-
WEBrick
:: HTTPVersion (11)
モジュール
- Comparable (11)
- Enumerable (11)
キーワード
- % (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - <=> (286)
- Numeric (11)
- OPS (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- bsearch (44)
-
bsearch
_ index (18) -
chunk
_ while (11) - cmp (22)
- cover? (17)
- div (11)
- divmod (22)
- modulo (11)
- remainder (11)
-
ruby 1
. 6 feature (11) - 演算子式 (11)
検索結果
先頭5件
-
Module
# <=(other) -> bool | nil (24236.0) -
比較演算子。self が other の子孫であるか、self と other が 同一クラスである場合、 true を返します。 self が other の先祖である場合、false を返します。
...@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 # =>... -
Comparable
# <=(other) -> bool (24218.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数か 0 を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
...比較演算子 <=> をもとにオブジェクト同士を比較します。
<=> が負の整数か 0 を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。......@raise ArgumentError <=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 <= 0 # => false
1 <= 1 # => true
1 <= 2 # => true
//}... -
Hash
# <=(other) -> bool (24218.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 # => true
//}
@see Hash#<, Hash#>=, Hash#>... -
Integer
# <=(other) -> bool (24218.0) -
比較演算子。数値として等しいまたは小さいか判定します。
...other 比較対象の数値
@return self よりも other の方が大きい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 <= 0 # => false
1 <= 1 # => true
1 <= 2 # => true
//}... -
Float
# <=(other) -> bool (24212.0) -
比較演算子。数値として等しいまたは小さいか判定します。
...param other 比較対象の数値
@return self よりも other の方が大きい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
BigDecimal
# <=(other) -> bool (24200.0) -
self が other より小さいか等しい場合に true を、そうでない場合に false を返します。
self が other より小さいか等しい場合に true を、そうでない場合に false
を返します。 -
Complex
# <=(other) -> bool (24200.0) -
@undef
@undef -
Fixnum
# <=(other) -> bool (24200.0) -
比較演算子。数値として等しいまたは小さいか判定します。
比較演算子。数値として等しいまたは小さいか判定します。
@param other 比較対象の数値
@return self よりも other の方が大きい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。 -
Float
# <(other) -> bool (18112.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
Module
# <=>(other) -> Integer | nil (12206.0) -
self と 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 <=> Object.new # => nil
//}...