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.
55 56 57 58 59 60 61 |
# File 'lib/tupelo/client/worker.rb', line 55 def initialize , worker @metatuple = @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.
53 54 55 |
# File 'lib/tupelo/client/worker.rb', line 53 def tag @tag end |
Instance Method Details
#===(tuple) ⇒ Object
63 64 65 |
# File 'lib/tupelo/client/worker.rb', line 63 def === tuple @pot === tuple end |