Method: OFlow::Task#has_input

Defined in:
lib/oflow/task.rb

#has_input(op) ⇒ Object



435
436
437
438
439
440
441
# File 'lib/oflow/task.rb', line 435

def has_input(op)
  ins = @actor.inputs()
  return true if ins.nil?
  op = op.to_sym unless op.nil?
  ins.each { |spec| return true if spec.op.nil? || spec.op == op }
  false
end