Class: Tupelo::Client::Worker::Subspace
- Defined in:
- lib/tupelo/client/worker.rb
Instance Attribute Summary collapse
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
- #===(tuple) ⇒ Object
-
#initialize(metatuple, worker) ⇒ Subspace
constructor
A new instance of Subspace.
Constructor Details
#initialize(metatuple, worker) ⇒ Subspace
Returns a new instance of Subspace.
59 60 61 62 63 64 65 |
# File 'lib/tupelo/client/worker.rb', line 59 def initialize , worker = @tag = ["tag"] spec = Marshal.load(Marshal.dump(["template"])) @pot = worker.pot_for(spec).optimize! end |
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
57 58 59 |
# File 'lib/tupelo/client/worker.rb', line 57 def tag @tag end |
Instance Method Details
#===(tuple) ⇒ Object
67 68 69 |
# File 'lib/tupelo/client/worker.rb', line 67 def === tuple @pot === tuple end |