8件ヒット
[1-8件を表示]
(0.016秒)
ライブラリ
- ビルトイン (2)
-
net
/ http (4) -
webrick
/ httpstatus (2)
キーワード
- Complex (1)
- HTTPMisdirectedRequest (1)
- HTTPPermanentRedirect (1)
- HTTPRedirection (1)
- HTTPTemporaryRedirect (1)
- Numeric (1)
- Redirect (1)
- TemporaryRedirect (1)
検索結果
先頭5件
-
Net
:: HTTPMisdirectedRequest (18004.0) -
HTTP レスポンス 421 (Misdirected Request) を表現するクラスです。
HTTP レスポンス 421 (Misdirected Request) を表現するクラスです。
詳しくは 7540 Section 9.1.2 を見てください。 -
Net
:: HTTPPermanentRedirect (18004.0) -
HTTP レスポンス 308 (Permanent Redirect) を表現するクラスです。
HTTP レスポンス 308 (Permanent Redirect) を表現するクラスです。
詳しくは 7538 を見てください。 -
Net
:: HTTPRedirection (18004.0) -
HTTP レスポンス 3xx (Redirection) を表現するクラスです。
HTTP レスポンス 3xx (Redirection) を表現するクラスです。
リクエストが正常に受信しましたが、処理を完了するためには
さらなる動作が必要なことを表します。 -
Net
:: HTTPTemporaryRedirect (18004.0) -
HTTP レスポンス 307 (Temporary Redirect) を表現するクラスです。
HTTP レスポンス 307 (Temporary Redirect) を表現するクラスです。
詳しくは 7231 Section 6.4.7 を見てください。 -
WEBrick
:: HTTPStatus :: Redirect (18004.0) -
HTTP のステータスコード転送 3XX の親クラスです。
HTTP のステータスコード転送 3XX の親クラスです。 -
WEBrick
:: HTTPStatus :: TemporaryRedirect (18004.0) -
HTTP のステータスコード 307 Temporary Redirect を表すクラスです。
HTTP のステータスコード 307 Temporary Redirect を表すクラスです。 -
Complex (22.0)
-
複素数を扱うクラスです。
複素数を扱うクラスです。
Complex オブジェクトを作成するには、Kernel.#Complex、
Complex.rect、Complex.polar、Numeric#to_c、
String#to_c のいずれかを使用します。
//emlist[Complex オブジェクトの作り方][ruby]{
Complex(1) # => (1+0i)
Complex(2, 3) # => (2+3i)
Complex.polar(2, 3) # => (-1.9799849932008908+0.2822400161197344i)
Complex(0.... -
Numeric (22.0)
-
数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。
...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...