るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

検索結果

<< 1 2 3 ... > >>

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

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

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

@see cwws コマンド

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

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

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

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

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

...her 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, Integ...

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

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

...します。

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

* self == other * q + r


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

をみたす数です。r の符号は self と同じになります。
商 q を直接返すメソッドはあり...
...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).remainder(3.5) #=> -0.5
//}

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

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

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

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

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

絞り込み条件を変える

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

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

...タイプを表す
文字列を返します。

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

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

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

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

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

...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 (6201.0)

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

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

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

@param other self を割る数。

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

CGI::Cookie#domain -> String (6201.0)

クッキーを適用するドメインを返します。

クッキーを適用するドメインを返します。

Resolv::DNS::Name#subdomain_of?(other) -> bool (6201.0)

other が self のサブドメインであるかどうかを返します。

..."
domain = Resolv::DNS::Name.create("y.z")
p Resolv::DNS::Name.create("w.x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("y.z").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("z").subdomain_of?(domain) #...
...=> false
p Resolv::DNS::Name.create("x.y.z.").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("w.z").subdomain_of?(domain) #=> false
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>