るりまサーチ

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

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. fileutils cp_r

ライブラリ

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

Comparable#>(other) -> bool (21225.0)

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

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

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

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

Integer#>(other) -> bool (21225.0)

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

...演算子。数値として大きいか判定します。

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

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

Shell::Filter#>(to) -> self (21119.0)

toをフィルタの出力とする。 toが, 文字列ならばファイルに, IOオブジェクトであれ ばそれをそのまま出力とする。

...力とする。

@
param to 出力先を指定します。文字列ならばファイルに,IOオブジェクトならばそれに出力します。

使用例
r
equire 'shell'
Shell.def_system_command("tail")
sh = Shell.new
sh.transact {
(sh.tail("-n 3") < "/etc/passwd") > File.open("tail...
....out", "w")
#(sh.tail("-n 3") < "/etc/passwd") > "tail.out" # と同じ.
}...

Module#>(other) -> bool | nil (18255.0)

比較演算子。 self が other の先祖である場合、true を返します。 self が other の子孫か同一クラスである場合、false を返します。

...ther の先祖である場合、true を返します。
self が other の子孫か同一クラスである場合、false を返します。

継承関係にないクラス同士の比較では
nil を返します。

@
param other 比較対象のモジュールやクラス

@
raise TypeError other...
...

@
see Module#<

//emlist[例][ruby]{
module Awesome; end
module Included
include Awesome
end
module Prepended
prepend Awesome
end

Included.ancestors # => [Included, Awesome]
Awesome > Included # => true
Included > Awesome # => false

Prepended.ancestors # => [Awesome, Prepended]
Awesome > Prep...
...ended # => true
Prepended > Awesome # => false

Awesome > Awesome # => false
Awesome > Object # => nil
//}...

Hash#>(other) -> bool (18231.0)

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

...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 # => false
//}

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

絞り込み条件を変える

Float#>(other) -> bool (18219.0)

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

...として大きいか判定します。

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

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

Complex#>(other) -> bool (18217.0)

@undef

...
@
undef...

Fixnum#>(other) -> bool (18213.0)

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

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

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

Vector#r -> Float (18208.0)

ベクトルの大きさ(ノルム)を返します。

...ベクトルの大きさ(ノルム)を返します。

//emlist[例][ruby]{
r
equire 'matrix'
Vector[3, 4].norm # => 5.0
Vector[Complex(0, 1), 0].norm # => 1.0
//}

@
see Vector#normalize...

Gem::SourceInfoCache#search_with_source(pattern, only_platform = false, all = false) -> Array (15325.0)

与えられた条件を満たす Gem::Specification と URL のリストを返します。

...n と URL のリストを返します。

@
param pattern 検索したい Gem を表す Gem::Dependency のインスタンスを指定します。

@
param only_platform 真を指定するとプラットフォームが一致するもののみを返します。デフォルトは偽です。

@
param all...
...真を指定するとキャッシュを更新してから検索を実行します。

@
return 第一要素を Gem::Specification、第二要素を取得元の URL とする配列を要素とする配列を返します。...

絞り込み条件を変える

<< 1 2 3 ... > >>