Fix generated Ruby that worked in Ruby 1.8 but fails in Ruby 1.9.
Chris Pressey
9 years ago
161 | 161 |
self.commas(ast.children[1:])
|
162 | 162 |
self.out.write('}')
|
163 | 163 |
elif ast.tag == 'FieldInit':
|
164 | |
self.out.write("'%s'," % ast.value)
|
|
164 |
self.out.write("'%s'=>" % ast.value)
|
165 | 165 |
self.compile(ast.children[0])
|
166 | 166 |
elif ast.tag == 'Index':
|
167 | 167 |
self.compile(ast.children[0])
|