るりまサーチ

最速Rubyリファレンスマニュアル検索!
61件ヒット [1-61件を表示] (0.017秒)
トップページ > クエリ:map[x] > 種類:ライブラリ[x]

別のキーワード

  1. matrix map
  2. _builtin map
  3. matrix map!
  4. _builtin flat_map
  5. set map!

キーワード

検索結果

e2mmap (6001.0)

例外クラスに特定のエラーメッセージ用フォーマットを関連づけるためのライブラリです。

...中で、Exception2MessageMapper を extend すれば、
def_e2message メソッドや def_exception メソッドが使えます。
これらで例外クラスとメッセージを関連づけることができます。

例:

class Foo
extend Exception2MessageMapper
def_e2message Existing...
...ラスの代わりにモジュールで定義して、
それを include して使います。

例:

module ErrorMod
extend Exception2MessageMapper
def_e2message ExistingExceptionClass, "message..."
def_exception :NewExceptionClass, "message...", StandardError
...
end
class Fo...
...

例:

module ErrorMod
extend Exception2MessageMapper
def_e2message ExistingExceptionClass, "message..."
def_exception :NewExceptionClass, "message...", StandardError
...
end
class Foo
extend Exception2MessageMapper
include ErrorMod
...
end

Foo.Fail NewEx...

net/imap (6001.0)

このライブラリは Internet Message Access Protocol (IMAP) の クライアントライブラリです。2060 を元に 実装されています。

...ssage Access Protocol (IMAP) の
クライアントライブラリです。2060 を元に
実装されています。

=== IMAP の概要

IMAPを利用するには、まずサーバに接続し、
Net::IMAP#authenticate もしくは
Net::IMAP#login で認証します。
IMAP ではメールボッ...
...実装されることが多いです。

メールボックス内のメッセージ(メール)を処理する場合、
まず Net::IMAP#select もしくは
Net::IMAP#examine で処理対象のメールボックスを
指定する必要があります。これらの操作が成功したならば、...
...
IMAP を使わないメールアプリケーションがメールの順番を
変えてしまった場合は、UID が振り直されます。

=== 例

デフォルトのメールボックス(INBOX)の送り元とサブジェクトを表示する。
require 'net/imap'

imap = Net::IMAP.new(...

fiddle/import (13.0)

fiddle ライブラリのための高レベルインターフェースを提供するライブラリです。

...void *)'
end

buff = [Time.at(1), Time.now, Time.at(100), Time.at(10)]
a = buff.map{|t| Fiddle.dlwrap(t)}.pack('l!*')
M.qsort(a, buff.size, Fiddle::SIZEOF_VOIDP, M::QsortCallback)
p a.unpack('l!*').map{|t| Fiddle.dlunwrap(t).to_i } #=> [1, 10, 100, 1241603848]

==== 複雑な...

tsort (13.0)

tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

...end
n = ns.first
if Array === n
outputs, inputs, block = n
inputs_time = inputs.map {|f| File.mtime f}.max
begin
outputs_time = outputs.map {|f| File.mtime f}.min
rescue Errno::ENOENT
outputs_time = nil
end
if output...

rake (7.0)

Rake というコマンドラインツールを扱うライブラリです。

...t.test_files = FileList["step#{n}/test_*.rb"]
t.verbose = false
end
end

desc 'execute all test'
task 'test_all' => (1..8).to_a.map{|n| "test_step#{n}"}

=== 用語集


: action / アクション
タスクを機能させるためのコードです。
Rakefile 内のアク...

絞り込み条件を変える

rexml/document (7.0)

DOM スタイルの XML パーサ。

...itle>
</bookmark>
<bookmark href="https://rubygems.org/gems/bitclust-core" />
</xbel>
XML

bookmarks = REXML::XPath.match(doc, "/xbel/bookmark").map do |bookmark|
href = bookmark.attribute("href").value
title_element = bookmark.elements["title"]
title = title_element ? title_element.text...