るりまサーチ

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

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

Rational#-(other) -> Rational | Float (21237.0)

差を計算します。

...差を計算します。

@param other 自身から引く数

other に Float を指定した場合は、計算結果を Float で返しま
す。

//emlist[例][ruby]{
r
= Rational(3, 4)
r
- 1 # => (-1/4)
r
- 0.5 # => 0.25
//}...

Array#-(other) -> Array (21219.0)

自身から other の要素を取り除いた配列を生成して返します。

...自身から other の要素を取り除いた配列を生成して返します。

要素の同一性は Object#eql? により評価されます。
self 中で重複していて、other中に存在していなかった要素は、その重複が保持されます。

@param other 自身から取...
...場合は to_ary メソッドによ
る暗黙の型変換を試みます。

@raise TypeError 引数に配列以外の(暗黙の型変換が行えない)オブジェクトを
指定した場合に発生します。

//emlist[例][ruby]{
[1, 2, 1, 3, 1, 4] - [4, 2] #...
...=> [1, 1, 3, 1]

[1, 2, 1, 3, 1, 4] - [1, 4] # => [2, 3]
//}...
...=> [1, 1, 3, 1]

[1, 2, 1, 3, 1, 4] - [1, 4] # => [2, 3]
//}


@see Array#difference...

Integer#-(other) -> Numeric (21213.0)

算術演算子。差を計算します。

...算術演算子。差を計算します。

@param other 二項演算の右側の引数(対象)
@return 計算結果

//emlist[][ruby]{
4 - 1 #=> 3
//}...

Gem::Specification#required_ruby_version -> Gem::Requirement (18618.0)

この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。

...この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。...

Gem::Specification#required_rubygems_version -> Gem::Requirement (18601.0)

この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。

...この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。...

絞り込み条件を変える

Gem::Requirement#prerelease? -> bool (18307.0)

何らかのバージョンがプレリリースのものであれば、true を返します。

...何らかのバージョンがプレリリースのものであれば、true を返します。

//emlist[][ruby]{
p Gem::Requirement.new("< 5.0").prerelease? # => false
p Gem::Requirement.new("< 5.0a").prerelease? # => true
//}...

Complex#-(other) -> Complex (18219.0)

差を計算します。

...差を計算します。

@param other 自身から引く数

//emlist[例][ruby]{
Complex(1, 2) - Complex(2, 3) # => (-1-1i)
//}...

Float#-(other) -> Float (18213.0)

算術演算子。差を計算します。

...算術演算子。差を計算します。

@param other 二項演算の右側の引数(対象)

//emlist[例][ruby]{
# 差
4.5 - 1.3 # => 3.2
//}...

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...
<< 1 2 3 ... > >>