Class: Pione::Tuple::TaskTuple
- Inherits:
-
BasicTuple
- Object
- PioneObject
- BasicTuple
- Pione::Tuple::TaskTuple
- Defined in:
- lib/pione/tuple/task-tuple.rb
Overview
TaskTuple is a class for rule application job with inputs, outpus and parameters.
Instance Attribute Summary
Attributes inherited from BasicTuple
Instance Method Summary collapse
-
#digest ⇒ String
Returns the digest string of the task.
Methods inherited from BasicTuple
#==, #hash, #identifier, inherited, #initialize, #to_json, #to_s, #to_tuple_space_form, #value, #writable?
Constructor Details
This class inherits a constructor from Pione::Tuple::BasicTuple
Instance Method Details
#digest ⇒ String
Returns the digest string of the task.
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/pione/tuple/task-tuple.rb', line 23 def digest "%s([%s],{%s})" % [ rule_path, inputs.map{|i| i.kind_of?(Array) ? "[%s, ...]" % i[0].name : i.name }.join(","), params.data.select{|k,_| not(k.toplevel?) }.map{|k,v| "%s:%s" % [k.name, v.textize]}.join(",") ] end |