Lines Matching refs:name
16 def makeHash(name):
17 return '@{} = {{'.format(name)
27 def beginDict(self, name):
29 return f'@{name} = {{'
35 def writeDict(self, dict, name, printValues = True):
36 """Write dictionary as a Ruby hash with the given name.
39 write(self.beginDict(name), file=self.outFile)
48 def writeList(self, l, name):
49 """Write list l as a Ruby hash with the given name"""
51 self.writeDict(l, name, printValues = False)
53 def makeAccessor(self, name):
54 """Create an accessor method for the hash 'name'"""
55 write('def {}'.format(name), file=self.outFile)
56 write(' @{}'.format(name), file=self.outFile)
80 for (dict, name) in dicts:
81 self.writeDict(dict, name)
113 for (_, name) in dicts:
114 self.makeAccessor(name)