83件ヒット
[1-83件を表示]
(0.026秒)
ライブラリ
- ビルトイン (22)
-
net
/ http (39) -
webrick
/ httpstatus (22)
キーワード
- Complex (11)
- HTTPMisdirectedRequest (7)
- HTTPPermanentRedirect (10)
- HTTPRedirection (11)
- HTTPTemporaryRedirect (11)
- Numeric (11)
- Redirect (11)
- TemporaryRedirect (11)
検索結果
先頭5件
-
Net
:: HTTPMisdirectedRequest (6001.0) -
HTTP レスポンス 421 (Misdirected Request) を表現するクラスです。
...HTTP レスポンス 421 (Misdirected Request) を表現するクラスです。
詳しくは 7540 Section 9.1.2 を見てください。... -
Net
:: HTTPPermanentRedirect (6001.0) -
HTTP レスポンス 308 (Permanent Redirect) を表現するクラスです。
...HTTP レスポンス 308 (Permanent Redirect) を表現するクラスです。
詳しくは 7538 を見てください。... -
Net
:: HTTPRedirection (6001.0) -
HTTP レスポンス 3xx (Redirection) を表現するクラスです。
...HTTP レスポンス 3xx (Redirection) を表現するクラスです。
リクエストが正常に受信しましたが、処理を完了するためには
さらなる動作が必要なことを表します。... -
Net
:: HTTPTemporaryRedirect (6001.0) -
HTTP レスポンス 307 (Temporary Redirect) を表現するクラスです。
...HTTP レスポンス 307 (Temporary Redirect) を表現するクラスです。
詳しくは 7231 Section 6.4.7 を見てください。... -
WEBrick
:: HTTPStatus :: Redirect (6001.0) -
HTTP のステータスコード転送 3XX の親クラスです。
HTTP のステータスコード転送 3XX の親クラスです。 -
WEBrick
:: HTTPStatus :: TemporaryRedirect (6001.0) -
HTTP のステータスコード 307 Temporary Redirect を表すクラスです。
...HTTP のステータスコード 307 Temporary Redirect を表すクラスです。... -
Complex (7.0)
-
複素数を扱うクラスです。
...複素数を扱うクラスです。
Complex オブジェクトを作成するには、Kernel.#Complex、
Complex.rect、Complex.polar、Numeric#to_c、
String#to_c のいずれかを使用します。
//emlist[Complex オブジェクトの作り方][ruby]{
Complex(1) # => (1+0i)
Complex... -
Numeric (7.0)
-
数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。
...real? | o - - - - - o
rect | o - - - - - o
rectangular | o - - - - - o......d
//}
また、任意桁の切上げ、切捨て、四捨五入を行うメソッドは以下のように
定義できます。
//emlist[][ruby]{
class Numeric
def roundup(d=0)
x = 10**d
if self > 0
self.quo(x).ceil * x
else
self.quo(x).floor * x
end
end
def roun......- o
rect | o - - - o
Numeric Integer Float Rational Complex
--------------------------------------------------------------------------------
rectangular | o...