From 89ef7538b2a87b230674c4f9d6e0ed954536e7f2 Mon Sep 17 00:00:00 2001 From: kou Date: Sun, 18 Sep 2016 13:51:57 +0000 Subject: * lib/rss/rss.rb (RSS::BaseModel): Remove needless codes. [Bug #12773][ruby-dev:49813] Reported by Kazuhiro NISHIYAMA. Thanks!!! git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rss/rss.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib') diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 5b9c5d4745..d161366f92 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -326,7 +326,6 @@ EOC def inherit_convert_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, *get_file_and_line_from_caller(2)) def #{attr}_without_inherit convert(@#{attr}) @@ -347,7 +346,6 @@ EOC def uri_convert_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, *get_file_and_line_from_caller(2)) def #{attr}_without_base convert(@#{attr}) @@ -368,7 +366,6 @@ EOC def convert_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, *get_file_and_line_from_caller(2)) def #{attr} convert(@#{attr}) @@ -379,7 +376,6 @@ EOC def yes_clean_other_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, __FILE__, __LINE__ + 1) attr_reader(:#{attr}) def #{attr}? @@ -391,7 +387,6 @@ EOC def yes_other_attr_reader(*attrs) attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, __FILE__, __LINE__ + 1) attr_reader(:#{attr}) def #{attr}? @@ -409,7 +404,6 @@ EOC end separator ||= ", " attrs.each do |attr| - attr = attr.id2name if attr.kind_of?(Integer) module_eval(<<-EOC, __FILE__, __LINE__ + 1) attr_reader(:#{attr}) def #{attr}_content -- cgit v1.2.3