クラス
-
Enumerator
:: Lazy (104) - Exception (11)
-
Net
:: IMAP (154) - Object (44)
- Vector (33)
-
WIN32OLE
_ TYPE (22)
モジュール
- Exception2MessageMapper (36)
- Process (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - == (11)
- ErrNotRegisteredException (6)
- Fail (12)
-
NEWS for Ruby 2
. 7 . 0 (5) - append (11)
- collect (11)
- collect2 (22)
-
collect
_ concat (11) - create (11)
- delete (11)
-
enum
_ for (44) - examine (11)
- expunge (11)
- fail (6)
-
filter
_ map (5) -
flat
_ map (11) - getquota (11)
- getquotaroot (11)
- getrlimit (11)
-
implemented
_ ole _ types (11) - login (11)
- map2 (11)
- new (11)
-
ole
_ classes (11) - rename (11)
- select (11)
- setquota (11)
- status (11)
- subscribe (11)
-
to
_ enum (44) - tsort (11)
- unsubscribe (11)
検索結果
先頭5件
- Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () - Exception2MessageMapper
. Raise(klass = E2MM , exception _ class = nil , *rest) -> () - Enumerator
:: Lazy # map {|item| . . . } -> Enumerator :: Lazy - Enumerator
:: Lazy # filter _ map {|item| . . . } -> Enumerator :: Lazy - Vector
# map2(v) {|x , y| . . . } -> Vector
-
Exception2MessageMapper
# Raise(exception _ class = nil , *rest) -> () (18131.0) -
登録されている情報を使用して、例外を発生させます。
...rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。
例:
class Foo
extend Exception2MessageMapper
p def_exception :NewExceptionClass,......# =>
def foo
Raise NewExceptionClass, 1, 2, 3
end
end
Foo.new().foo() #=> in `Raise': message...1, 2 and 3 (Foo::NewExceptionClass)
# という例外が発生します。
Foo.Raise Foo::NewExceptionClass, 1, 3, 5 #=> in `Raise': message...1, 3 and... -
Exception2MessageMapper
. Raise(klass = E2MM , exception _ class = nil , *rest) -> () (18107.0) -
登録されている情報を使用して、例外を発生させます。
...なるクラス名を指定します。
@param exception_class 例外クラス。
@param rest メッセージに埋め込む値。
@raise Exception2MessageMapper::ErrNotRegisteredException 指定された例外クラスに対応するメッセージが存在しない場合に発生します。... -
Enumerator
:: Lazy # map {|item| . . . } -> Enumerator :: Lazy (15141.0) -
Enumerable#map と同じですが、配列ではなくEnumerator::Lazy を返します。
...ble#map と同じですが、配列ではなくEnumerator::Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.map{ |n| n % 3 == 0 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:map>
1.......step.lazy.collect{ |n| n.succ }.take(10).force
# => [2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
//}
@see Enumerable#map... -
Enumerator
:: Lazy # filter _ map {|item| . . . } -> Enumerator :: Lazy (6147.0) -
Enumerable#filter_map と同じですが、配列ではなく Enumerator::Lazy を返します。
...Enumerable#filter_map と同じですが、配列ではなく Enumerator::Lazy を返します。
@raise ArgumentError ブロックを指定しなかった場合に発生します。
//emlist[例][ruby]{
1.step.lazy.filter_map { |n| n * 2 if n.even? }
# => #<Enumerator::Lazy: #<Enumerator::Lazy:......(1.step)>:filter_map>
1.step.lazy.filter_map { |n| n * 2 if n.even? }.take(10).force
# => [4, 8, 12, 16, 20, 24, 28, 32, 36, 40]
//}
@see Enumerable#filter_map... -
Vector
# map2(v) {|x , y| . . . } -> Vector (6119.0) -
ベクトルの各要素と引数 v の要素との組に対してブロックを評価し、その結果を要素として持つベクトルを返します。
...ます。
ブロックを省略した場合は Enumerator を返します。
@param v ブロック内で評価される(ベクトル or 配列)
@raise ExceptionForMatrix::ErrDimensionMismatch 自分自身と引数のベクト
ルの要素の数(次元)が異なっていたときに発生......として持つベクトルを生成します。
//emlist[例][ruby]{
require 'matrix'
v1 = Vector[2, 3, 5]
v2 = Vector[7, 9, 11]
a = Array[7, 9, 11]
z = v1.map2(v2) { |x, y| x * y }
p z # => Vector[14, 27, 55]
z = v1.map2(a) { |x, y| x * y } # Array でも OK
p z # => Vector[14, 27, 55]
//}... -
Net
:: IMAP # getquotaroot(mailbox) -> [Net :: IMAP :: MailboxQuotaRoot | Net :: IMAP :: MailboxQuota] (3206.0) -
GETQUOTAROOT コマンドを送って 指定したメールボックスの quota root の一覧と、 関連する quota の情報を返します。
...返します。
quota root の情報は Net::IMAP::MailboxQuotaRoot のオブジェクトで、
返り値の配列の中に唯一含まれています。
quota の情報はメールボックスに関連付けられた quota root ごとに
Net::IMAP::MailboxQuota オブジェクトで得られます......2087 を見てください。
このコマンドは Net::IMAP#capability の返り値を見ることで
利用可能かどうか判断できます。
@param mailbox quota root を得たいメールボックス名(文字列)
@raise Net::IMAP::NoResponseError 指定したメールボックスが存... -
Enumerator
:: Lazy # flat _ map {|item| . . . } -> Enumerator :: Lazy (3125.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 は分解されず、そのままの値として使われます。
//emlist[][ruby]{
[{a:1}, {b:2}].lazy.flat_map {|i| i}.force
#=> [{:a=>1}, {:b=>2}]
//}
@raise ArgumentError ブロックを指定しなかった場合に発生します。
@see Enumerable#flat_map... -
Net
:: IMAP # append(mailbox , message , flags = nil , date _ time = nil) -> Net :: IMAP :: TaggedResponse (3106.0) -
APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。
...APPEND コマンドを送ってメッセージをメールボックスの末尾に追加します。
例:
imap.append("inbox", <<EOF.gsub(/\n/, "\r\n"), [:Seen], Time.now)
Subject: hello
From: someone@example.com
To: somebody@example.com
hello world
EOF
@param mailbox メッセー......セージ文字列
@param flags メッセージに付加するフラグ(Symbol の配列)
@param date_time メッセージの時刻(Time オブジェクト)。省略時は現在時刻が使われる
@raise Net::IMAP::NoResponseError メールボックスが存在しない場合に発生します... -
Net
:: IMAP # create(mailbox) -> Net :: IMAP :: TaggedResponse (3106.0) -
CREATE コマンドを送り、新しいメールボックスを作ります。
...CREATE コマンドを送り、新しいメールボックスを作ります。
@param mailbox 新しいメールボックスの名前(文字列)
@raise Net::IMAP::NoResponseError 指定した名前のメールボックスが作れなかった場合に発生します... -
Net
:: IMAP # delete(mailbox) -> Net :: IMAP :: TaggedResponse (3106.0) -
DELETE コマンドを送り、指定したメールボックスを削除します。
...ドを送り、指定したメールボックスを削除します。
@param mailbox 削除するメールボックスの名前(文字列)
@raise Net::IMAP::NoResponseError 指定した名前のメールボックスを削除できなかった場合
に発生します。指定した名前の... -
Net
:: IMAP # examine(mailbox) -> Net :: IMAP :: TaggedResponse (3106.0) -
EXAMINE コマンドを送り、指定したメールボックスを処理対象の メールボックスにします。
...スにします。
Net::IMAP#select と異なりセッション中はメールボックスが
読み取り専用となります。それ以外は select と同じです。
@param mailbox 処理対象としたいメールボックスの名前(文字列)
@raise Net::IMAP::NoResponseError mailboxが...