Method: MultiEval#without_obj

Defined in:
lib/formula_eval/multi_eval.rb

#without_obj(obj) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/formula_eval/multi_eval.rb', line 20

def without_obj(obj)
  res = objs.reject { |x| x == obj }
  raise "didn't find" unless objs.size == res.size+1
  res
rescue => exp
  puts "#{objs.inspect} #{obj.inspect}"
  raise exp
end