Bugs: Browse | Submit New | Admin

[#6521] backgroundrb 0.2.0 - unable to append to an array in the results

Date:
2006-11-06 20:38
Priority:
3
Submitted By:
Chris Hall (au5lander)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
backgroundrb 0.2.0 - unable to append to an array in the results

Detailed description
backgroundrb 0.2.0

ex:

def do_work(args)
  # won't work
  results[:foo] = []
  results[:foo] << "abc"
  results[:foo] << "xyz"
  # results[:foo] => []

  # will work
  tmp_arr = []
  tmp_arr << "abc"
  tmp_arr << "xyz"
  results[:bar] = tmp_arr
  # results[:bar] = ["abc", "xyz"]
end

i don't know if strings or any other objects are affected by this as my particular situation involves arrays.

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item