Module: ComputeDependency
- Defined in:
- lib/rbbt/workflow/accessor.rb
Instance Attribute Summary collapse
-
#compute ⇒ Object
Returns the value of attribute compute.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#compute ⇒ Object
Returns the value of attribute compute.
5 6 7 |
# File 'lib/rbbt/workflow/accessor.rb', line 5 def compute @compute end |
Class Method Details
.setup(dep, value) ⇒ Object
6 7 8 9 |
# File 'lib/rbbt/workflow/accessor.rb', line 6 def self.setup(dep, value) dep.extend ComputeDependency dep.compute = value end |
Instance Method Details
#canfail? ⇒ Boolean
11 12 13 |
# File 'lib/rbbt/workflow/accessor.rb', line 11 def canfail? compute == :canfail || (Array === compute && compute.include?(:canfail)) end |