Advertisement
Guest User

Untitled

a guest
Jan 11th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. puts "max hash: #{@data.max_by{ |stat_var, stats_hash| stats_hash.length }.inspect}"
  2.  
  3. #this returns:
  4. #max hash: [:bytes, {:total=>81519, :in=>81519, :out=>0}]
  5.  
  6. #how can i have it return just the hash portion:
  7.  
  8. #ex this is what i want:
  9.  
  10. #--> {:total=>81519, :in=>81519, :out=>0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement