2794件ヒット
[1-100件を表示]
(0.218秒)
ライブラリ
- ビルトイン (1148)
- benchmark (22)
-
cgi
/ html (44) - continuation (11)
- csv (22)
- date (11)
- dbm (11)
- delegate (11)
-
fiddle
/ import (44) - fileutils (22)
- forwardable (44)
- gdbm (11)
-
json
/ add / rational (11) - logger (1)
- mathn (4)
- matrix (195)
- mkmf (44)
-
net
/ imap (33) - open3 (11)
- openssl (198)
- optparse (55)
- pathname (132)
- prettyprint (22)
- rake (44)
- resolv (11)
-
rinda
/ tuplespace (11) -
rubygems
/ platform (11) -
rubygems
/ source _ index (11) -
rubygems
/ specification (44) -
rubygems
/ validator (11) - scanf (6)
- sdbm (11)
- shell (24)
-
shell
/ command-processor (30) -
shell
/ filter (30) - socket (55)
- stringio (11)
- syslog (11)
- tempfile (22)
-
webrick
/ httputils (22) -
win32
/ registry (22) - zlib (143)
クラス
-
ARGF
. class (11) - Array (82)
- BasicSocket (22)
-
Benchmark
:: Tms (11) - Bignum (6)
-
CSV
:: Row (22) - Continuation (11)
- DBM (11)
- Data (6)
- Date (11)
- Delegator (11)
- Dir (29)
-
Encoding
:: Converter (44) - Enumerator (18)
-
Enumerator
:: Lazy (120) -
Enumerator
:: Yielder (11) - File (51)
- Fixnum (6)
- Float (49)
- GDBM (11)
-
Gem
:: Platform (11) -
Gem
:: SourceIndex (11) -
Gem
:: Specification (44) -
Gem
:: Validator (11) - Hash (28)
- IO (55)
- Integer (15)
- MatchData (11)
- Matrix (150)
- Module (91)
-
Net
:: IMAP (22) -
Net
:: IMAP :: MailboxList (11) - Object (11)
-
OpenSSL
:: OCSP :: BasicResponse (11) -
OpenSSL
:: OCSP :: Response (11) -
OpenSSL
:: PKCS7 (44) -
OpenSSL
:: PKey :: DH (33) -
OpenSSL
:: PKey :: DSA (22) -
OpenSSL
:: PKey :: RSA (44) -
OpenSSL
:: SSL :: SSLContext (11) -
OpenSSL
:: X509 :: Certificate (11) - OptionParser (55)
- Pathname (132)
- PrettyPrint (22)
-
Rake
:: FileList (11) -
Rake
:: Task (11) - Rational (48)
- Regexp (22)
-
Resolv
:: IPv6 (11) -
Rinda
:: TupleSpace (11) - SDBM (11)
- Shell (24)
-
Shell
:: CommandProcessor (30) -
Shell
:: Filter (30) -
Socket
:: AncillaryData (33) - String (41)
- StringIO (11)
- Struct (11)
- Tempfile (22)
- Time (11)
- Vector (45)
-
WEBrick
:: HTTPUtils :: FormData (11) -
Win32
:: Registry (22) -
Zlib
:: Deflate (44) -
Zlib
:: GzipReader (33) -
Zlib
:: GzipWriter (66)
モジュール
- Benchmark (11)
-
CGI
:: HtmlExtension (44) - Enumerable (165)
-
Fiddle
:: Importer (44) - FileUtils (33)
- Forwardable (22)
-
GC
:: Profiler (11) - Kernel (218)
- Math (22)
- ObjectSpace (11)
- Open3 (11)
-
OpenSSL
:: Buffering (11) - SingleForwardable (22)
- Syslog (11)
キーワード
- ** (32)
- << (11)
- === (11)
- Application (1)
- DOSISH 対応 (11)
- Float (11)
- FormData (11)
-
HKEY
_ DYN _ DATA (11) -
HKEY
_ PERFORMANCE _ DATA (11) - Marshal フォーマット (11)
- Rational (11)
- Ruby が動作するプラットフォーム (11)
- Win32 (11)
- Win32ネイティブ版 (11)
- [] (7)
-
_ strptime (11) - accept (22)
-
add
_ dependency (11) -
add
_ development _ dependency (11) -
add
_ runtime _ dependency (11) - alien (11)
- attr (22)
-
attr
_ accessor (11) -
attr
_ reader (11) -
attr
_ writer (11) - bind (11)
- binread (11)
- binwrite (11)
- call (11)
- caller (33)
- cat (18)
- chain (6)
-
checkbox
_ group (11) - chunk (11)
- collect (45)
- collect! (29)
- collect2 (11)
-
collect
_ concat (33) - combine (14)
- concat (28)
- convert (11)
- create (33)
-
create
_ rule (11) -
def
_ delegators (22) -
def
_ instance _ delegators (11) -
def
_ single _ delegators (11) - define (4)
- deflate (11)
-
deprecate
_ constant (9) - diagonal (11)
- divmod (11)
- each (44)
-
each
_ byte (11) -
each
_ line (33) -
each
_ object (11) -
each
_ with _ index (11) -
each
_ with _ object (11) - eigen (11)
- eigensystem (11)
- empty (11)
- encrypt (11)
-
enum
_ for (22) - exclude (11)
- extern (11)
- fields (11)
-
file
_ create (11) -
filter
_ map (10) -
find
_ header (11) -
find
_ library (22) - finish (11)
-
flat
_ map (33) - flock (11)
- fnmatch (22)
- fnmatch? (22)
- force (11)
- format (33)
- frexp (11)
-
from
_ installed _ gems (11) - gamma (11)
- generate (66)
- glob (22)
-
grep
_ v (22) - gsub (33)
- lazy (11)
- log (11)
- lup (11)
-
lup
_ decomposition (11) - lutime (7)
- map (45)
- map! (29)
- match (22)
-
max
_ by (22) -
method
_ missing (11) - mkdir (18)
- mkpath (11)
- new (73)
- notify (11)
- on (33)
- open (44)
- pack (19)
- pack テンプレート文字列 (11)
- pipeline (11)
-
primitive
_ convert (44) - printf (77)
- private (18)
-
private
_ class _ method (11) -
private
_ constant (11) -
private
_ decrypt (11) -
private
_ encrypt (11) -
public
_ key (11) -
radio
_ group (11) -
raw
_ data (11) -
rb
_ protect (11) - read (44)
-
read
_ only (11) - readlines (11)
- realtime (11)
- recvmsg (11)
-
recvmsg
_ nonblock (11) -
remove
_ entry _ secure (11) -
respond
_ to _ missing? (11) - rmdir (18)
- round (20)
-
ruby 1
. 8 . 2 feature (11) -
ruby2
_ keywords (5) -
rubygems
/ security (11) - scanf (6)
-
scrolling
_ list (11) -
session
_ cache _ stats (11) - sh (11)
- sign (11)
-
singleline
_ format (11) - sprintf (11)
- status (22)
- store (11)
- strftime (11)
- struct (11)
- sub (22)
-
to
_ enum (22) -
to
_ f (22) -
to
_ h (2) -
to
_ json (11) -
to
_ r (11) -
transform
_ values (8) -
transform
_ values! (8) -
uid
_ store (11) - union (11)
-
unix
_ rights (11) - unpack (11)
- update (14)
- utime (29)
-
values
_ at (88) - verify (11)
- warn (3)
-
warn
_ unless _ e _ option (11) -
warning
_ unless _ e _ option (11) -
with
_ index (5) - wrap (22)
- write (22)
-
write
_ smime (11) - xmlrpc (3)
- yaml (11)
- yield (11)
- zip (22)
- 制御構造 (11)
- 正規表現 (11)
検索結果
先頭5件
-
Rational
# *(other) -> Rational | Float (27654.0) -
積を計算します。
...します。
@param other 自身に掛ける数
other に Float を指定した場合は、計算結果を Float で返しま
す。
//emlist[例][ruby]{
r = Rational(3, 4)
r * 2 # => (3/2)
r * 4 # => (3/1)
r * 0.5 # => 0.375
r * Rational(1, 2) # => (3... -
SingleForwardable
# def _ single _ delegators(accessor , *methods) -> () (27602.0) -
メソッドの委譲先をまとめて設定します。
...メソッドの委譲先をまとめて設定します。
@param accessor 委譲先のオブジェクト
@param methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの......legators は def_singleton_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map
@see SingleForwardable#def_delegat......or... -
Float
# *(other) -> Float (24506.0) -
算術演算子。積を計算します。
...算術演算子。積を計算します。
@param other 二項演算の右側の引数(対象)
//emlist[例][ruby]{
# 積
2.4 * 3 # => 7.2
//}... -
SingleForwardable
# def _ delegators(accessor , *methods) -> () (24502.0) -
メソッドの委譲先をまとめて設定します。
...メソッドの委譲先をまとめて設定します。
@param accessor 委譲先のオブジェクト
@param methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの......legators は def_singleton_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map
@see SingleForwardable#def_delegat......or... -
Forwardable
# def _ delegators(accessor , *methods) -> () (21502.0) -
メソッドの委譲先をまとめて設定します。
...メソッドの委譲先をまとめて設定します。
@param accessor 委譲先のオブジェクト
@param methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの......_delegators は def_instance_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map
@see Forwardable#def_delegator... -
Forwardable
# def _ instance _ delegators(accessor , *methods) -> () (21502.0) -
メソッドの委譲先をまとめて設定します。
...メソッドの委譲先をまとめて設定します。
@param accessor 委譲先のオブジェクト
@param methods 委譲するメソッドのリスト
委譲元のオブジェクトで methods のそれぞれのメソッドが呼び出された場合に、
委譲先のオブジェクトの......_delegators は def_instance_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map
@see Forwardable#def_delegator... -
Kernel
# file _ create(*args) { . . . } -> Rake :: FileCreationTask (18800.0) -
ファイルを作成するタスクを定義します。
...ファイルを作成するタスクを定義します。
主に Kernel.#directory を定義するために使用します。... -
Kernel
. # Rational(x , y = 1) -> Rational (18630.0) -
引数を有理数(Rational)に変換した結果を返します。
...有理数(Rational)に変換した結果を返します。
@param x 変換対象のオブジェクトです。
@param y 変換対象のオブジェクトです。省略した場合は x だけを用いて
Rational オブジェクトを作成します。
@raise ArgumentError 変換でき......x/y した Rational オブジェクトを
返します。
//emlist[例][ruby]{
Rational("1/3") # => (1/3)
Rational(1, 3) # => (1/3)
Rational("0.1", "0.3") # => (1/3)
Rational(Complex(1,2), 2) # => ((1/2)+(1/1)*i)
//}
ただし、1.8系とは異なり、Rational オブジェ......ださい。
//emlist[例][ruby]{
Rational(2, 6) # => (1/3)
Rational(1, 3) * 3 # => (1/1)
//}
引数に文字列を指定する場合、以下のいずれかの形式で指定します。
* "1/3" のような分数の形式
* "0.3" のような10進数の形式
* "0.3E0" のよう... -
Kernel
. # Rational(x , y = 1 , exception: true) -> Rational | nil (18630.0) -
引数を有理数(Rational)に変換した結果を返します。
...有理数(Rational)に変換した結果を返します。
@param x 変換対象のオブジェクトです。
@param y 変換対象のオブジェクトです。省略した場合は x だけを用いて
Rational オブジェクトを作成します。
@param exception false を指定......nil を返します。
@raise ArgumentError 変換できないオブジェクトを指定した場合に発生します。
引数 x、y の両方を指定した場合、x/y した Rational オブジェクトを
返します。
//emlist[例][ruby]{
Rational("1/3") # => (1/3)
Rational(1,......# => (1/3)
Rational("0.1", "0.3") # => (1/3)
Rational(Complex(1,2), 2) # => ((1/2)+(1/1)*i)
//}
ただし、1.8系とは異なり、Rational オブジェクトは常に既約(それ以上
約分できない状態)である事に注意してください。
//emlist[例][ruby]{
Rational(2, 6)... -
Resolv
:: IPv6 . create(address) -> Resolv :: IPv6 (18624.0) -
引数 address で指定した文字列から Resolv::IPv6 のインスタンスを生成しま す。
...数 address で指定した文字列から Resolv::IPv6 のインスタンスを生成しま
す。
@param address human readable な IPv6 アドレスの文字列表現を以下のいず
れかの形式で指定します。
* 8Hex
* CompressedHex
* 6Hex4Dec
* CompressedHex4... -
Enumerator
:: Lazy # flat _ map {|item| . . . } -> Enumerator :: Lazy (18618.0) -
ブロックの実行結果をひとつに繋げたものに対してイテレートするような Enumerator::Lazy のインスタンスを返します。
...ような
Enumerator::Lazy のインスタンスを返します。
//emlist[][ruby]{
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force
#=> ["f", "o", "o", "b", "a", "r"]
//}
ブロックの返した値 x は、以下の場合にのみ分解され、連結されます。
* x が配列で......るか、to_ary メソッドを持つとき
* x が each および force メソッドを持つ (例:Enumerator::Lazy) とき
それ以外のときは、x は分解されず、そのままの値として使われます。
//emlist[][ruby]{
[{a:1}, {b:2}].lazy.flat_map {|i| i}.force
#=> [{:a=>1},......{:b=>2}]
//}
@raise ArgumentError ブロックを指定しなかった場合に発生します。
@see Enumerable#flat_map...