fork download
  1. # your code goes here
  2.  
  3. def thing(&blk)
  4. my_hash = {a: 1, b: 2}
  5. my_hash.each(&blk)
  6. end
  7.  
  8. thing do |a,b|
  9. puts "Key: #{a}, Value: #{b}"
  10. end
Success #stdin #stdout 0.02s 7456KB
stdin
Standard input is empty
stdout
Key: a, Value: 1
Key: b, Value: 2