@@ -326,7 +326,6 @@ def #{method_name}(need_convert=true, indent='')
326
326
327
327
def inherit_convert_attr_reader ( *attrs )
328
328
attrs . each do |attr |
329
- attr = attr . id2name if attr . kind_of? ( Integer )
330
329
module_eval ( <<-EOC , *get_file_and_line_from_caller ( 2 ) )
331
330
def #{ attr } _without_inherit
332
331
convert(@#{ attr } )
@@ -347,7 +346,6 @@ def #{attr}
347
346
348
347
def uri_convert_attr_reader ( *attrs )
349
348
attrs . each do |attr |
350
- attr = attr . id2name if attr . kind_of? ( Integer )
351
349
module_eval ( <<-EOC , *get_file_and_line_from_caller ( 2 ) )
352
350
def #{ attr } _without_base
353
351
convert(@#{ attr } )
@@ -368,7 +366,6 @@ def #{attr}
368
366
369
367
def convert_attr_reader ( *attrs )
370
368
attrs . each do |attr |
371
- attr = attr . id2name if attr . kind_of? ( Integer )
372
369
module_eval ( <<-EOC , *get_file_and_line_from_caller ( 2 ) )
373
370
def #{ attr }
374
371
convert(@#{ attr } )
@@ -379,7 +376,6 @@ def #{attr}
379
376
380
377
def yes_clean_other_attr_reader ( *attrs )
381
378
attrs . each do |attr |
382
- attr = attr . id2name if attr . kind_of? ( Integer )
383
379
module_eval ( <<-EOC , __FILE__ , __LINE__ + 1 )
384
380
attr_reader(:#{ attr } )
385
381
def #{ attr } ?
@@ -391,7 +387,6 @@ def #{attr}?
391
387
392
388
def yes_other_attr_reader ( *attrs )
393
389
attrs . each do |attr |
394
- attr = attr . id2name if attr . kind_of? ( Integer )
395
390
module_eval ( <<-EOC , __FILE__ , __LINE__ + 1 )
396
391
attr_reader(:#{ attr } )
397
392
def #{ attr } ?
@@ -409,7 +404,6 @@ def csv_attr_reader(*attrs)
409
404
end
410
405
separator ||= ", "
411
406
attrs . each do |attr |
412
- attr = attr . id2name if attr . kind_of? ( Integer )
413
407
module_eval ( <<-EOC , __FILE__ , __LINE__ + 1 )
414
408
attr_reader(:#{ attr } )
415
409
def #{ attr } _content
0 commit comments