るりまサーチ

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix rank_e
  4. matrix det_e
  5. open3 capture2e

検索結果

<< 1 2 3 ... > >>

IRB::Context#main -> object (21202.0)

self に設定されたオブジェクトを返します。

...self に設定されたオブジェクトを返します。

@see cwws コマンド...

Rake::RDocTask#main -> String (21102.0)

メインとして使用されるファイル名を返します。

メインとして使用されるファイル名を返します。

Numeric#remainder(other) -> Numeric (15201.0)

self を other で割った余り r を返します。

...self を other で割った余り r を返します。

ここで、商 q と余り r は、

* self == other * q + r


* self > 0 のとき 0 <= r < |other|
* self < 0 のとき -|other| < r <= 0
* q は整数

をみたす数です。r の符号は self と同じになります。...
...self.quo(other).truncate がそれに相当します。

@param other 自身を割る数を指定します。

//emlist[例][ruby]{
p 13.remainder(4) #=> 1
p (11.5).remainder(3.5) #=> 1.0
p 13.remainder(-4) #=> 1
p (-13).remainder(4) #=> -1
p (-13).remainder(-4) #=> -1
p (-11).rema...
...inder(3.5) #=> -0.5
//}

@see Numeric#divmod, Numeric#modulo...

RDoc::Options#main_page -> String | nil (12218.0)

コマンドライン引数の --main オプションで指定したファイル名、クラス/モ ジュール名を返します。

...コマンドライン引数の --main オプションで指定したファイル名、クラス/モ
ジュール名を返します。

指定しなかった場合は nil を返します。...

RDoc::Options#main_page=(val) (12218.0)

コマンドライン引数の --main オプションと同様の指定を行います。

...コマンドライン引数の --main オプションと同様の指定を行います。

@param val 設定するファイル名、クラス/モジュール名を文字列で指定します。...

絞り込み条件を変える

Net::HTTPHeader#main_type -> String|nil (12208.0)

"text/html" における "text" のようなタイプを表す 文字列を返します。

...text/html" における "text" のようなタイプを表す
文字列を返します。

Content-Type: ヘッダフィールドが存在しない場合には nil を返します。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_re...
...sponse(uri)
res.main_type # => "text"
//}...

BigDecimal#remainder(n) -> BigDecimal (12201.0)

self を n で割った余りを返します。

...self を n で割った余りを返します。

@param n self を割る数を指定します。

//emlist[][ruby]{
require 'bigdecimal'
x = BigDecimal((2**100).to_s)
x.remainder(3).to_i # => 1
(-x).remainder(3).to_i # => -1
x.remainder(-3).to_i # => 1
(-x).remainder(-3).to_i # => -1
//}...
...戻り値は self と同じ符号になります。これは BigDecimal#% とは異な
る点に注意してください。詳細は Numeric#%、
Numeric#remainder を参照して下さい。...

Bignum#remainder(other) -> Fixnum | Bignum | Float (12201.0)

self を other で割った余り r を返します。

...self を other で割った余り r を返します。

r の符号は self と同じになります。

@param other self を割る数。

@see Bignum#divmod, Bignum#modulo, Numeric#modulo...

Integer#remainder(other) -> Numeric (12201.0)

self を other で割った余り r を返します。

...self を other で割った余り r を返します。

r の符号は self と同じになります。

@param other self を割る数。

//emlist[][ruby]{
5.remainder(3) # => 2
-5.remainder(3) # => -2
5.remainder(-3) # => 2
-5.remainder(-3) # => -2

-1234567890987654321.remainder(13731...
...) # => -6966
-1234567890987654321.remainder(13731.24) # => -9906.22531493148
//}

@see Integer#divmod, Integer#modulo, Numeric#modulo...

Resolv::DNS::Resource::DomainName#name -> Resolv::DNS::Name (12201.0)

ドメイン名を返します。

ドメイン名を返します。

絞り込み条件を変える

<< 1 2 3 ... > >>