diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 10:07:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 10:07:22 +0000 |
commit | db1f7079b6ff3c7227f20fc9c0743f9147bba2d2 (patch) | |
tree | 8db391210107f63c0a2df826c706eff1e789b208 /lib/rss | |
parent | acd82f6e24494ccced2fca81681c1beb1a5e0e58 (diff) |
remove string literal concatenation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss')
-rw-r--r-- | lib/rss/rss.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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]) |