-
-
Save anonymous/4e4f623ba96c6bd3fa5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hash = Hash.new | |
hash["ST"] = {:cur => '12', :now => '4', :size => '1000', :queue => ["12345", "6784321"]} | |
puts hash | |
hash.each do |k, v| | |
puts "#{k}:#{v}" | |
v.each { |a, b| | |
puts "HASH #{a}:#{b}" | |
if a.to_s.eql? 'queue' | |
arr = [*Array(b)] | |
puts "Q#{arr.length}" | |
puts "#{arr}" | |
# same thing as below | |
arr.each {|d| | |
puts "D#{d}" | |
} | |
b.each { |c| | |
puts “Deep Value #{c}" | |
} | |
end | |
} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment