ruby-changes:46833
From: naruse <ko1@a...>
Date: Mon, 29 May 2017 01:41:35 +0900 (JST)
Subject: [ruby-changes:46833] naruse:r58948 (trunk): suppress warning: ambiguous first argument; put parentheses or a space even after `-' operator
naruse 2017-05-29 01:41:31 +0900 (Mon, 29 May 2017) New Revision: 58948 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58948 Log: suppress warning: ambiguous first argument; put parentheses or a space even after `-' operator Introduced at r58905 http://rubyci.s3.amazonaws.com/ubuntu/ruby-trunk/log/20170526T153003Z.diff.html.gz Modified files: trunk/lib/erb.rb Index: lib/erb.rb =================================================================== --- lib/erb.rb (revision 58947) +++ lib/erb.rb (revision 58948) @@ -589,7 +589,7 @@ class ERB https://github.com/ruby/ruby/blob/trunk/lib/erb.rb#L589 end def add_put_cmd(out, content) - out.push("#{@put_cmd} -#{content_dump(content)}") + out.push("#{@put_cmd}(-#{content_dump(content)})") end def add_insert_cmd(out, content) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/