# File lib/ruby2ruby.rb, line 146 def process_attrasgn(exp) receiver = process exp.shift name = exp.shift args = exp.empty? ? nil : exp.shift case name when :[]= then rhs = process args.pop args[0] = :arglist "#{receiver}[#{process(args)}] = #{rhs}" else if args then "#{receiver}.#{name.to_s[0..-2]} = #{process(args)[1..-2]}" else "#{receiver}.#{name.to_s[0..-2]}" end end end