510件ヒット
[1-100件を表示]
(0.036秒)
別のキーワード
ライブラリ
- ビルトイン (258)
- bigdecimal (12)
-
irb
/ cmd / help (12) -
irb
/ cmd / subirb (12) -
irb
/ context (12) -
json
/ add / exception (12) - mkmf (72)
-
net
/ http (12) -
net
/ smtp (24) -
rake
/ rdoctask (24) - resolv (24)
クラス
- BigDecimal (12)
- Bignum (3)
-
CGI
:: Cookie (12) - Exception (44)
-
IRB
:: Context (12) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: IrbCommand (12) - Integer (12)
- Module (36)
- NameError (24)
-
Net
:: SMTP (24) - NoMethodError (12)
- Numeric (12)
- Object (12)
-
RDoc
:: Options (12) -
Rake
:: RDocTask (24) -
Resolv
:: DNS :: Name (12) -
Resolv
:: DNS :: Resource :: DomainName (12) -
RubyVM
:: InstructionSequence (36) - Thread (36)
-
Thread
:: Backtrace :: Location (36) - TracePoint (7)
-
WEBrick
:: Cookie (12)
モジュール
- Kernel (72)
-
Net
:: HTTPHeader (12)
キーワード
- args (12)
- autoload (12)
-
backtrace
_ locations (36) -
base
_ label (24) - domain (24)
- ehlo (12)
- execute (24)
-
find
_ library (24) -
have
_ library (24) - helo (12)
- inspect (12)
-
instruction
_ sequence (7) - label (12)
-
main
_ page (12) -
main
_ type (12) - name (24)
- raise (12)
- refine (12)
- remainder (39)
-
respond
_ to? (12) -
set
_ backtrace (12) -
subdomain
_ of? (12) -
to
_ a (12) -
to
_ json (12) -
to
_ s (24) -
try
_ link (24) - using (12)
検索結果
先頭5件
-
IRB
:: Context # main -> object (18202.0) -
self に設定されたオブジェクトを返します。
self に設定されたオブジェクトを返します。
@see cwws コマンド -
Rake
:: RDocTask # main -> String (18202.0) -
メインとして使用されるファイル名を返します。
メインとして使用されるファイル名を返します。 -
RDoc
:: Options # main _ page -> String | nil (6218.0) -
コマンドライン引数の --main オプションで指定したファイル名、クラス/モ ジュール名を返します。
...コマンドライン引数の --main オプションで指定したファイル名、クラス/モ
ジュール名を返します。
指定しなかった場合は nil を返します。... -
Net
:: HTTPHeader # main _ type -> String|nil (6208.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"
//}... -
Numeric
# remainder(other) -> Numeric (6207.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 と同じになります。......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... -
BigDecimal
# remainder(n) -> BigDecimal (6201.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) -
クッキーを適用するドメインを返します。
クッキーを適用するドメインを返します。 -
Integer
# remainder(other) -> Numeric (6201.0) -
self を other で割った余り r を返します。
...ther 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, Inte... -
Resolv
:: DNS :: Name # subdomain _ of?(other) -> bool (6201.0) -
other が self のサブドメインであるかどうかを返します。
...omain = 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
//}...