66件ヒット
[1-66件を表示]
(0.014秒)
種類
- インスタンスメソッド (33)
- クラス (22)
- 特異メソッド (11)
ライブラリ
-
rinda
/ rinda (55) -
rinda
/ tuplespace (11)
クラス
-
Rinda
:: DRbObjectTemplate (22) -
Rinda
:: TupleSpace (11) -
Rinda
:: TupleSpaceProxy (11)
キーワード
- === (11)
- DRbObjectTemplate (11)
- Template (11)
- new (11)
- notify (22)
検索結果
先頭5件
-
Rinda
:: Template (14108.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]) # => true
template.match(['abcd', 2,......late = Rinda::Template.new([/^abc/, Integer, nil])
template.match([/^abc/, Integer, nil]) # => true
template.match(['abc', 2, 5]) # => true
template.match(['def', 2, 5]) # => false
template = Rinda::Template.new({'name' => String, 'age' => Integer})
template.match({'name'......=> 'seki', 'age' => 0x20}) # => true
template.match({'name' => :seki, 'age' => 0x20}) # => false... -
Rinda
:: DRbObjectTemplate (14000.0) -
-
Rinda
:: DRbObjectTemplate # ===(ro) (11000.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) (11000.0) -
@todo
...@todo
Creates a new DRbObjectTemplate that will match against +uri+ and
+ref+.... -
Rinda
:: TupleSpaceProxy # notify(ev , tuple , sec = nil) -> Rinda :: NotifyTemplateEntry (8100.0) -
event で指定した種類のイベントの監視を開始します。
event で指定した種類のイベントの監視を開始します。
内部的にはリモートオブジェクトの Rinda::TupleSpace#notify にフォワードされます。
詳細は Rinda::TupleSpace#notify 参照してください
@param event 監視対象のイベント(文字列)
@param pattern 監視対象となるタプルのパターン
@param sec 監視期間の長さ(秒数) -
Rinda
:: TupleSpace # notify(event , pattern , sec = nil) -> Rinda :: NotifyTemplateEntry (106.0) -
event で指定した種類のイベントの監視を開始します。
...した場合にのみ報告されます。
イベントが生じた場合、
このメソッドの返り値の Rinda::NotifyTemplateEntry を経由し、
Rinda::NotifyTemplateEntry#each を用いて報告を受け取ります。
sec で監視期間を秒数で指定できます。 nil で無限に......って監視が終了した場合には 'close' イベントが報告されます。
pattern で指定できるパターンについては lib:rinda/rinda#tuplepattern を
参照してください。
@param event 監視対象のイベント(文字列)
@param pattern 監視対象となるタプル...