From db1f7079b6ff3c7227f20fc9c0743f9147bba2d2 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 25 Oct 2012 10:07:22 +0000 Subject: remove string literal concatenation git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rss/rss.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/rss') diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb index 3d90d54912..e1b37e6a39 100644 --- a/lib/rss/rss.rb +++ b/lib/rss/rss.rb @@ -591,10 +591,10 @@ EOC def #{accessor_name}=(*args) receiver = self.class.name - warn("Warning:\#{caller.first.sub(/:in `.*'\z/, '')}: " \ - "Don't use `\#{receiver}\##{accessor_name} = XXX'/" \ - "`\#{receiver}\#set_#{accessor_name}(XXX)'. " \ - "Those APIs are not sense of Ruby. " \ + warn("Warning:\#{caller.first.sub(/:in `.*'\z/, '')}: " << + "Don't use `\#{receiver}\##{accessor_name} = XXX'/" << + "`\#{receiver}\#set_#{accessor_name}(XXX)'. " << + "Those APIs are not sense of Ruby. " << "Use `\#{receiver}\##{plural_name} << XXX' instead of them.") if args.size == 1 @#{accessor_name}.push(args[0]) -- cgit v1.2.3