lib/qyu/models/concerns/workflow_descriptor_validator.rb
# validates that a task descriptor is present and is a Hash
#
# @param task_name [String] name of task currently being validated
# @param reference_key [String] reference key to validate tasks in it
# @param klass [Class] how this reference key is represented
# @return [Boolean]
validates that a task descriptor is present and is a Hash
validates that a task descriptor is present and is a Hash
def validate_presence_of_reference_tasks(task_name, reference_key, klass)
        task_names = (tasks[task_name][reference_key] || klass.new)
        task_names = task_names.keys if klass.eql?(Hash)
        task_names.all? { |t_name| tasks[t_name].is_a?(Hash) }
      end
def validate_presence_of_reference_tasks ( task_name , reference_key , klass ) task_names = ( tasks [ task_name ] [ reference_key ] || klass . new ) task_names = task_names . keys if klass . eql? ( Hash ) task_names . all? { | t_name | tasks [ t_name ] . is_a? ( Hash ) } end
validates that a task descriptor is present and is a Hash
validates that a task descriptor is present and is a Hash
None
Boolean
task_name
name of task currently being validated
name of task currently being validated
reference_key
reference key to validate tasks in it
reference key to validate tasks in it
klass
None