Posted By

sma_61 on 03/17/09


Tagged

textmate 1


Versions (?)

loop


 / Published in: Other
 

  1. devices.group_by(&:imei).each do |imei, device|
  2. bar = Bar3d.new
  3. #bar.set_key(imei, 3)
  4. #bar.set_key("32412", 3)
  5. #bar.colour = colours[bars.size]
  6. bar.values = device.map(&:deviceid)
  7. #bar.values = [10, 11];
  8. bars << bar
  9. end
  10.  

Report this snippet  

You need to login to post a comment.