るりまサーチ

最速Rubyリファレンスマニュアル検索!
269件ヒット [1-100件を表示] (0.055秒)

別のキーワード

  1. net/imap param
  2. win32ole win32ole_param
  3. win32ole_param new
  4. win32ole_param name
  5. win32ole_param to_s

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 > >>

Module#>=(other) -> bool | nil (18142.0)

比較演算子。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 # => true
Bar >= Foo # => false

Baz.ancestors # => [Foo, Baz]
Foo >= Baz # => true
Baz >= Foo # => false

Foo >= Foo # => true
Foo >= Object # => nil
//}...

Comparable#>=(other) -> bool (18124.0)

比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が正の整数か 0 を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。

...以外の整数を返した場合に、false を返します。

@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <=> が nil を返したときに発生します。

//emlist[例][ruby]{
1 >= 0 # => true
1 >= 1 # => true
1 >= 2 # => false
//}...

Hash#>=(other) -> bool (18124.0)

other が self のサブセットか同じである場合に真を返します。

...セットか同じである場合に真を返します。

@param other 自身と比較したい Hash オブジェクトを指定します。

//emlist[例][ruby]{
h1 = {a:1, b:2}
h2 = {a:1, b:2, c:3}
h1 >= h2 # => false
h2 >= h1 # => true
h1 >= h1 # => true
//}

@see Hash#<=, Hash#<, Hash#>...

Integer#>=(other) -> bool (18124.0)

比較演算子。数値として等しいまたは大きいか判定します。

...

@param other 比較対象の数値
@return self よりも other の方が小さい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。

//emlist[][ruby]{
1 >= 0 # => true
1 >= 1 # => true
1 >= 2 # =>...

Float#>=(other) -> bool (18112.0)

比較演算子。数値として等しいまたは大きいか判定します。

...ます。

@param other 比較対象の数値
@return self よりも other の方が小さい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返します。

//emlist[例][ruby]{
3.14 > 3.1415 # => false
3.14 >= 3.1415 #...

絞り込み条件を変える

Fixnum#>=(other) -> bool (18106.0)

比較演算子。数値として等しいまたは大きいか判定します。

...比較演算子。数値として等しいまたは大きいか判定します。

@param other 比較対象の数値
@return self よりも other の方が小さい場合か、
両者が等しい場合 true を返します。
そうでなければ false を返しま...

MiniTest::Assertions#assert_in_epsilon(actual, expected, epsilon = 0.001, message = nil) -> true (30.0)

与えられた期待値と実際の値の相対誤差が許容範囲内である場合、検査にパスしたことになります。

...スします。

[expected, actual].min * epsilon >= (extected - actual).abs

@param expected 期待値を指定します。

@param actual 実際の値を指定します。

@param epsilon 許容する相対誤差を指定します。

@param message 検査に失敗した場合に表示するメ...

Time.strptime(date, format, now=self.now) -> Time (24.0)

文字列を Date._strptime を用いて Time オブジェクト に変換します。

...:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 1991-05-18 04:13:00 +0900

Time.strptime('01/5/18 4:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 2001-0...
...5-18 04:13:00 +0900

詳しくは DateTime.strptime, Date.strptime を見てください。

@param date 時刻を表す文字列
@param format 書式文字列...

Time.strptime(date, format, now=self.now) {|y| ... } -> Time (24.0)

文字列を Date._strptime を用いて Time オブジェクト に変換します。

...:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 1991-05-18 04:13:00 +0900

Time.strptime('01/5/18 4:13:00', '%Y/%m/%d %T'){|y|
if y > 100 then y
elsif y >= 69 then y + 1900
else y + 2000
end
}
#=> 2001-0...
...5-18 04:13:00 +0900

詳しくは DateTime.strptime, Date.strptime を見てください。

@param date 時刻を表す文字列
@param format 書式文字列...

Comparable#between?(min, max) -> bool (18.0)

比較演算子 <=> をもとに self が min と max の範囲内(min, max を含みます)にあるかを判断します。

...)にあるかを判断します。

以下のコードと同じです。
//emlist[][ruby]{
self >= min and self <= max
//}

@param min 範囲の下端を表すオブジェクトを指定します。

@param max 範囲の上端を表すオブジェクトを指定します。

@raise ArgumentError sel...

絞り込み条件を変える

Math.#acosh(x) -> Float (18.0)

x の逆双曲線余弦関数(area hyperbolic cosine)の値を返します。

...x の逆双曲線余弦関数(area hyperbolic cosine)の値を返します。

=== 定義

acosh(x) = log(x + sqrt(x * x - 1)) [x >= 1]

@param x x >= 1 の範囲の実数

@raise TypeError x に数値以外を指定した場合に発生します。

@raise Math::DomainError x に範囲外...
<< 1 2 3 > >>