3192件ヒット
[1-100件を表示]
(0.231秒)
ライブラリ
- English (44)
- ビルトイン (1914)
- abbrev (22)
- benchmark (44)
- bigdecimal (22)
-
cgi
/ util (44) - date (88)
-
drb
/ acl (11) - e2mmap (12)
- erb (22)
- fileutils (11)
- forwardable (22)
-
irb
/ magic-file (11) - logger (19)
- openssl (99)
- optparse (22)
- psych (11)
- rake (22)
-
rexml
/ document (33) -
rexml
/ streamlistener (11) -
rubygems
/ commands / which _ command (22) - scanf (12)
- set (22)
- socket (11)
- syslog (165)
- thwait (24)
- time (22)
- timeout (19)
- tsort (42)
- uri (50)
-
webrick
/ accesslog (55) -
webrick
/ log (11) - zlib (77)
クラス
- ACL (11)
- Array (322)
- BasicObject (11)
-
Benchmark
:: Tms (22) - BigDecimal (22)
- Bignum (6)
- CGI (44)
- Date (33)
- DateTime (55)
- Dir (11)
-
Encoding
:: Converter (44) - Enumerator (23)
-
Enumerator
:: Lazy (107) - File (44)
-
File
:: Stat (22) - Fixnum (6)
- Float (64)
-
Gem
:: Commands :: WhichCommand (22) - Hash (56)
- IO (22)
- Integer (55)
- Logger (19)
- Module (44)
- Numeric (44)
- Object (44)
-
OpenSSL
:: BN (99) - OptionParser (22)
-
Psych
:: Handler (11) -
REXML
:: DocType (11) -
REXML
:: Entity (22) -
Rake
:: FileList (11) - Range (30)
- Regexp (11)
- Set (22)
- Socket (11)
- String (45)
- Struct (34)
- ThreadsWait (24)
- Time (137)
-
WEBrick
:: Log (11) -
Zlib
:: GzipReader (66) -
Zlib
:: GzipWriter (11)
モジュール
- Abbrev (11)
- Benchmark (22)
-
ERB
:: Util (22) - Enumerable (513)
- Exception2MessageMapper (12)
- FileTest (22)
- FileUtils (11)
- Forwardable (22)
- Kernel (275)
- Process (11)
-
REXML
:: StreamListener (11) - Syslog (165)
- TSort (42)
- Timeout (19)
- URI (50)
-
WEBrick
:: AccessLog (55)
オブジェクト
-
IRB
:: MagicFile (11)
キーワード
-
$ & (11) -
$ & # 39; (11) -
$ 1 (11) -
$ 10 (11) -
$ 11 (11) -
$ 2 (11) -
$ 3 (11) -
$ 4 (11) -
$ 5 (11) -
$ 6 (11) -
$ 7 (11) -
$ 8 (11) -
$ 9 (11) -
$ OFS (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ PID (11) -
$ PROCESS _ ID (11) -
$ ` (11) -
$ ~ (11) - ** (22)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - =~ (11)
- CLF (11)
-
CLF
_ TIME _ FORMAT (11) -
COMBINED
_ LOG _ FORMAT (11) -
COMMON
_ LOG _ FORMAT (11) -
ENCODING
_ SPEC _ RE (11) - EXT (11)
- FORMAT (22)
- Fail (6)
- Marshal フォーマット (11)
- Numeric (11)
-
REFERER
_ LOG _ FORMAT (11) - Raise (6)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Rubyの起動 (11)
-
_ strptime (22) - abbrev (22)
- alert (11)
- all? (12)
-
all
_ waits (18) - any? (14)
- benchmark (11)
- binwrite (11)
- chmod (11)
- chunk (22)
-
class
_ eval (22) - close (11)
- collect (11)
- count (66)
- crit (11)
-
datetime
_ format (11) - debug (11)
- decode (7)
-
decode
_ www _ form _ component (11) - delegate (11)
-
delete
_ if (22) - detect (22)
- divide (22)
- divmod (22)
-
each
_ byte (22) -
each
_ strongly _ connected _ component _ from (21) - emerg (11)
- encode (7)
-
encode
_ www _ form _ component (11) - entitydecl (11)
-
enum
_ for (22) - environment (11)
- err (11)
- escape (18)
- filter (24)
- filter! (24)
- find (22)
-
find
_ all (22) -
find
_ index (33) -
find
_ paths (11) - fnmatch (11)
- fnmatch? (11)
- format (22)
-
generate
_ prime (11) - getifaddrs (11)
-
group
_ by (22) - grpowned? (11)
- include (11)
- info (11)
- inspect (5)
-
instance
_ delegate (11) - irb (11)
- iso8601 (11)
-
keep
_ if (44) - lineno (11)
- load (11)
- log (11)
- map (11)
-
mask
_ bits! (11) - matches? (11)
- max (60)
-
max
_ by (44) -
method
_ missing (11) - min (60)
-
min
_ by (44) - minmax (32)
-
minmax
_ by (22) - mkdir (11)
-
mod
_ add (11) -
mod
_ exp (11) -
mod
_ inverse (11) -
mod
_ mul (11) -
mod
_ sqr (11) -
mod
_ sub (11) -
module
_ eval (22) - modulo (50)
- new (43)
-
next
_ float (10) - none? (18)
- nonzero? (11)
- notice (11)
- nsec (11)
- one? (18)
- open (22)
- open! (11)
- opened? (11)
- owned? (11)
- pack (19)
- pack テンプレート文字列 (11)
- partition (22)
- pathmap (11)
- pos (11)
- pow (22)
-
prev
_ float (10) -
primitive
_ convert (44) - printf (33)
- produce (5)
- reject (44)
- reject! (22)
- reopen (11)
-
rexml
/ parsers / pullparser (11) -
rexml
/ parsers / sax2parser (11) -
rexml
/ parsers / streamparser (11) - rfc3339 (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 4 feature (11) - scanf (12)
- select (44)
- select! (44)
- setproctitle (11)
-
slice
_ after (20) -
slice
_ before (33) -
slice
_ when (10) - sort (22)
-
sort
_ by! (22) - sprintf (11)
- sprintf フォーマット (11)
-
start
_ document (11) - stat (11)
- step (18)
- strftime (22)
- strptime (44)
- subsec (11)
- tell (11)
- test (22)
-
time
_ format (11) - timeout (19)
-
to
_ enum (22) -
to
_ f (11) -
to
_ h (17) -
to
_ i (11) -
to
_ s (11) - tsort (11)
-
tsort
_ each (21) -
tv
_ nsec (11) -
tv
_ sec (11) -
tv
_ usec (11) - u (11)
- unescape (18)
- unescapeElement (11)
-
unescape
_ element (11) - ungetc (11)
- uniq (22)
- unnormalized (11)
- unpack (11)
-
url
_ encode (11) - usec (11)
-
values
_ at (11) - warning (11)
-
world
_ readable? (22) -
world
_ writable? (22) - write (11)
- xmlschema (11)
- クラス/メソッドの定義 (11)
- 正規表現 (11)
- 演算子式 (11)
検索結果
先頭5件
-
Integer
# %(other) -> Numeric (21560.0) -
算術演算子。剰余を計算します。
...算術演算子。剰余を計算します。
//emlist[][ruby]{
13 % 4 # => 1
13 % -4 # => -3
-13 % 4 # => 3
-13 % -4 # => -1
//}
@param other 二項演算の右側の引数(対象)
@return 計算結果... -
Numeric
# %(other) -> Numeric (21524.0) -
self を other で割った余り r を返します。
...self を other で割った余り r を返します。
ここで、商 q と余り r は、
* self == other * q + r
と
* other > 0 のとき 0 <= r < other
* other < 0 のとき other < r <= 0
* q は整数
をみたす数です。
余り r は、other と同じ符号になります......meric#div (あるいは 「/」)で求められます。
modulo はメソッド % の呼び出しとして定義されています。
@param other 自身を割る数を指定します。
//emlist[例][ruby]{
p 13.modulo(4) #=> 1
p (11.5).modulo(3.5) #=> 1.0
p 13.modulo(-4) #=> -3
p (-1......3).modulo(4) #=> 3
p (-13).modulo(-4) #=> -1
p (-11).modulo(3.5) #=> 3.0
//}
@see Numeric#divmod, Numeric#remainder... -
Range
# %(s) -> Enumerator :: ArithmeticSequence (21506.0) -
範囲内の要素を s おきに繰り返します。
...きます。
@return ブロックを指定した時は self を返します。
@return ブロックを指定しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返......します。(例: String の Range)
//emlist[例][ruby]{
("a" .. "f").step(2) {|v| p v}
# => "a"
# "c"
# "e"
//}... -
BigDecimal
# %(n) -> BigDecimal (21448.0) -
self を n で割った余りを返します。
...self を n で割った余りを返します。
@param n self を割る数を指定します。
//emlist[][ruby]{
require 'bigdecimal'
x = BigDecimal((2**100).to_s)
( x % 3).to_i # => 1
(-x % 3).to_i # => 2
( x % -3).to_i # => -2
(-x % -3).to_i # => -1
//}
戻り値は n と同じ符号にな......ります。これは BigDecimal#remainder とは
異なる点に注意してください。詳細は Numeric#%、
Numeric#remainder を参照して下さい。... -
Range
# %(s) -> Enumerator (21406.0) -
範囲内の要素を s おきに繰り返します。
...きます。
@return ブロックを指定した時は self を返します。
@return ブロックを指定しなかった時かつ数値の Range の時は Enumerator::ArithmeticSequence を返します。
@return ブロックを指定しなかったその他の Range の時は Enumerator を返......します。(例: String の Range)
//emlist[例][ruby]{
("a" .. "f").step(2) {|v| p v}
# => "a"
# "c"
# "e"
//}... -
OpenSSL
:: BN # %(other) -> OpenSSL :: BN (21400.0) -
自身を other で割り算した余りを返します。
...自身を other で割り算した余りを返します。
@param other 除数
@raise OpenSSL::BNError 計算時エラー... -
String
# %(args) -> String (18816.0) -
printf と同じ規則に従って args をフォーマットします。
...Kernel.#sprintf(self, *args) と同じです。
それ以外の場合は Kernel.#sprintf(self, args) と同じです。
@param args フォーマットする値、もしくはその配列
@return フォーマットされた文字列
//emlist[例][ruby]{
p "i = %d" % 10 # => "i =......10"
p "i = %x" % 10 # => "i = a"
p "i = %o" % 10 # => "i = 12"
p "i = %#d" % 10 # => "i = 10"
p "i = %#x" % 10 # => "i = 0xa"
p "i = %#o" % 10 # => "i = 012"
p "%d" % 10 # => "10"
p "%d,%o" % [10, 10] # => "10,12"
//}
=== sprintf フォーマット
Ruby の......しています。
%[nth$][フラグ][幅][.精度]指示子
%[<name>][フラグ][幅][.精度]指示子
`%' 自身を出力するには `%%' とします。
以下それぞれの要素に関して説明します。
=== フラグ
フラグには #, +, ' '(スペース), -, 0 の5種類があ... -
Float
# %(other) -> Float (18412.0) -
算術演算子。剰余を計算します。
...算術演算子。剰余を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 剰余
3.0 % 1.2 # => 0.6000000000000001
3.0 % 0.0 # ZeroDivisionError
//}... -
Bignum
# %(other) -> Fixnum | Bignum | Float (18400.0) -
算術演算子。剰余を計算します。
...算術演算子。剰余を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果... -
Fixnum
# %(other) -> Fixnum | Bignum | Float (18400.0) -
算術演算子。剰余を計算します。
...算術演算子。剰余を計算します。
@param other 二項演算の右側の引数(対象)
@return 計算結果... -
URI
. encode _ www _ form _ component(str , enc=nil) -> String (12834.0) -
文字列を URL-encoded form data の1コンポーネント としてエンコードした文字列を返します。
...を URL-encoded form data の1コンポーネント
としてエンコードした文字列を返します。
通常は URI.encode_www_form を使うほうがよいでしょう。
このメソッドでは *, -, ., 0-9, A-Z, _, a-z, は変換せず、
空白は + に変換し、その他は %XX に......R-html5-20130806/forms.html#url-encoded-form-data
にもとづいて実装されています。
//emlist[][ruby]{
require 'uri'
p URI.encode_www_form_component('Ruby リファレンスマニュアル')
# => "Ruby+%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9%E3%83%9E%E3%83%8B%E3%83%A5%E3%8......2%A2%E3%83%AB"
//}
@param str エンコードする文字列
@param enc 指定された場合、パーセントエンコーディングする前に、strをこのエンコーディングに変換
@see URI.decode_www_form_component, URI.encode_www_form... -
ruby 1
. 6 feature (11532.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...feature
ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン
になります。
((<stable-snapshot|URL:ftp://ftp.netlab.co.jp/pub/lang/ruby/stable-snapshot.tar.gz>)) は、日々更新される安定版の最新ソースです。
== 1.6.8 (2002-12-24) -> stable-s......03-01-22: errno
EAGAIN と EWOULDBLOCK が同じ値のシステムで、EWOULDBLOCK がなくなっ
ていました。現在は、このようなシステムでは、EWOULDBLOCK は、EAGAIN
として定義されています。(これは 1.6.7 とは異なる挙動です)
p Er......o
=> ruby 1.6.7 (2002-03-01) [i586-linux]
"baz"
"foo"
=> -:2:in `[]=': string not matched (IndexError)
from -:2
ruby 1.6.7 (2002-07-30) [i586-linux]
: 2002-06-03 sprintf()
"%d" で引数を整数にするときに、((<組み込み関数/Integer>)) と...