498件ヒット
[201-300件を表示]
(0.101秒)
ライブラリ
- ビルトイン (222)
-
irb
/ cmd / help (12) -
irb
/ cmd / subirb (12) -
irb
/ context (12) -
json
/ add / exception (12) - mkmf (48)
-
net
/ http (12) -
net
/ smtp (24) -
rake
/ rdoctask (36) - resolv (12)
- rss (48)
クラス
- Bignum (3)
-
CGI
:: Cookie (12) - Exception (44)
-
IRB
:: Context (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: IrbCommand (12) - Integer (12)
- Module (12)
- NameError (12)
-
Net
:: SMTP (24) - NoMethodError (12)
- Numeric (12)
- Object (12)
-
RDoc
:: Options (24) -
RSS
:: Maker :: ChannelBase :: CategoriesBase :: CategoryBase (24) -
RSS
:: Rss :: Channel :: Item :: Category (24) -
Rake
:: RDocTask (36) -
Resolv
:: DNS :: Name (12) -
RubyVM
:: InstructionSequence (36) - Thread (36)
-
Thread
:: Backtrace :: Location (36) - TracePoint (7)
-
WEBrick
:: Cookie (12)
モジュール
- Kernel (48)
-
Net
:: HTTPHeader (12)
キーワード
- args (12)
- autoload (12)
-
backtrace
_ locations (36) -
base
_ label (24) - domain (48)
- domain= (24)
- ehlo (12)
- execute (24)
-
find
_ library (24) - helo (12)
- inspect (12)
-
instruction
_ sequence (7) - label (12)
- main= (12)
-
main
_ page (12) -
main
_ page= (12) -
main
_ type (12) - raise (12)
- remainder (27)
-
respond
_ to? (12) -
set
_ backtrace (12) -
subdomain
_ of? (12) -
to
_ a (12) -
to
_ json (12) -
to
_ s (24) -
try
_ link (24)
検索結果
先頭5件
-
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) -
クッキーを適用するドメインを返します。
クッキーを適用するドメインを返します。 -
Numeric
# remainder(other) -> Numeric (6201.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 と同じになります。......uo(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).remainder(... -
Resolv
:: DNS :: Name # subdomain _ of?(other) -> bool (6201.0) -
other が self のサブドメインであるかどうかを返します。
...other が self のサブドメインであるかどうかを返します。
//emlist[][ruby]{
require "resolv"
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::D......NS::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
//}... -
WEBrick
:: Cookie # domain -> String (6201.0) -
ドメイン名を文字列で表すアクセサです。
ドメイン名を文字列で表すアクセサです。
@param value ドメイン名を表す文字列を指定します。 -
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (6113.0) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
...nfo nil、String あるいは String の配列のいずれかを指定します。
//emlist[例][ruby]{
begin
begin
raise "inner"
rescue
raise "outer"
end
rescue
$!.backtrace # => ["/path/to/test.rb:5:in `rescue in <main>'", "/path/to/test.rb:2:in `<main>'"]
$!.set_backtrace(["dum......my1", "dummy2"])
$!.backtrace # => ["dummy1", "dummy2"]
end
//}... -
NameError
# to _ s -> String (6113.0) -
例外オブジェクトを文字列に変換して返します。
...オブジェクトを文字列に変換して返します。
例:
begin
foobar
rescue NameError => err
p err # => #<NameError: undefined local variable or method `foobar' for main:Object>
p err.to_s # => "undefined local variable or method `foobar' for main:Object"
end... -
Rake
:: RDocTask # options -> Array (6113.0) -
rdoc コマンドに渡すオプションのリストを返します。
...rdoc コマンドに渡すオプションのリストを返します。
指定できるオプションは -o, --main, --title, -T 以外です。... -
RubyVM
:: InstructionSequence # to _ a -> Array (6113.0) -
self の情報を 14 要素の配列にして返します。
...ーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフォーマットを示す数値......変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出するために使用)
: #label
メソッド名、クラス名、モジュール名などで構成される命令シーケンスのラ
ベル。トップレベルでは "<main>"。文字列から作成......: #path
命令シーケンスの相対パス。文字列から作成していた場合は "<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1 行目の行番号。
: type... -
Exception
# to _ json(*args) -> String (6107.0) -
自身を JSON 形式の文字列に変換して返します。
...してから JSON::Generator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
begin
0/0
rescue => e
e.to_json # => "{\"json_class\......":\"ZeroDivisionError\",\"m\":\"divided by 0\",\"b\":[\"/path/to/test.rb:4:in `/'\",\"/path/to/test.rb:4:in `<main>'\"]}"
end
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json...