class Array

def to_h_with_block(&block)

def to_h_with_block(&block)
  receiver = block ? map(&block) : self
  receiver.to_h_without_block
end