Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts "max hash: #{@data.max_by{ |stat_var, stats_hash| stats_hash.length }.inspect}"
- #this returns:
- #max hash: [:bytes, {:total=>81519, :in=>81519, :out=>0}]
- #how can i have it return just the hash portion:
- #ex this is what i want:
- #--> {:total=>81519, :in=>81519, :out=>0}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement