ruby-changes:56845
From: Yusuke <ko1@a...>
Date: Wed, 7 Aug 2019 03:14:26 +0900 (JST)
Subject: [ruby-changes:56845] Yusuke Endoh: 8877dbe400 (master): ext/ripper/lib/ripper/lexer.rb: Consistently use `Array#push`
https://git.ruby-lang.org/ruby.git/commit/?id=8877dbe400 From 8877dbe400d84c1f595cb4aa8a06fc71640a43c0 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 7 Aug 2019 03:13:17 +0900 Subject: ext/ripper/lib/ripper/lexer.rb: Consistently use `Array#push` instead of <<. All the other callsites use `push`. diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb index 8aad81b..73933ca 100644 --- a/ext/ripper/lib/ripper/lexer.rb +++ b/ext/ripper/lib/ripper/lexer.rb @@ -161,7 +161,7 @@ class Ripper https://github.com/ruby/ruby/blob/trunk/ext/ripper/lib/ripper/lexer.rb#L161 def on_heredoc_beg(tok) @stack.push @buf buf = [] - @buf << buf + @buf.push buf @buf = buf @buf.push Elem.new([lineno(), column()], __callee__, tok, state()) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/