# File lib/ruby2ruby.rb, line 397 def process_hash(exp) result = [] until exp.empty? lhs = process(exp.shift) rhs = exp.shift t = rhs.first rhs = process rhs rhs = "(#{rhs})" unless [:lit, :str].include? t # TODO: verify better! result << "#{lhs} => #{rhs}" end case self.context[1] when :arglist, :argscat then unless result.empty? then return "#{result.join(', ')}" # HACK - this will break w/ 2 hashes as args else return "{}" end else return "{ #{result.join(', ')} }" end end