るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.021秒)

別のキーワード

  1. rinda/rinda new
  2. rinda/rinda rinda
  3. rinda/rinda tuple
  4. rinda/rinda take

検索結果

Rinda::Template (42325.0)

タプルのマッチングのためのクラスです。 ユーザがこのクラスを直接使うことはありません。

タプルのマッチングのためのクラスです。
ユーザがこのクラスを直接使うことはありません。

=== 例

require 'rinda/rinda'

template = Rinda::Template.new(['abc', nil, nil])
template.match(['abc', 2, 5]) # => true
template.match(['hoge', 2, 5]) # => false

template = Rinda::Template.new([String, Integer, nil])
template.match(['abc', 2, 5...

Rinda::DRbObjectTemplate (42001.0)

Rinda::DRbObjectTemplate#===(ro) (33001.0)

@todo

@todo

This DRbObjectTemplate matches +ro+ if the remote object's drburi
and drbref are the same. +nil+ is used as a wildcard.

Rinda::DRbObjectTemplate.new(uri = nil, ref = nil) (33001.0)

@todo

@todo

Creates a new DRbObjectTemplate that will match against +uri+ and
+ref+.

Rinda::TupleSpaceProxy#notify(ev, tuple, sec = nil) -> Rinda::NotifyTemplateEntry (24301.0)

event で指定した種類のイベントの監視を開始します。

event で指定した種類のイベントの監視を開始します。

内部的にはリモートオブジェクトの Rinda::TupleSpace#notify にフォワードされます。
詳細は Rinda::TupleSpace#notify 参照してください

@param event 監視対象のイベント(文字列)
@param pattern 監視対象となるタプルのパターン
@param sec 監視期間の長さ(秒数)

絞り込み条件を変える

Rinda::TupleSpace#notify(event, pattern, sec = nil) -> Rinda::NotifyTemplateEntry (319.0)

event で指定した種類のイベントの監視を開始します。

event で指定した種類のイベントの監視を開始します。

イベントを生じさせたタプルがpattern にマッチした場合にのみ報告されます。

イベントが生じた場合、
このメソッドの返り値の Rinda::NotifyTemplateEntry を経由し、
Rinda::NotifyTemplateEntry#each を用いて報告を受け取ります。

sec で監視期間を秒数で指定できます。 nil で無限に監視し続けます。

event として以下の3つを指定できます。
* 'write' : タプルが追加された
* 'take' : タプルが take された
* 'delet...