From 8877dbe400d84c1f595cb4aa8a06fc71640a43c0 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 7 Aug 2019 03:13:17 +0900 Subject: [PATCH] ext/ripper/lib/ripper/lexer.rb: Consistently use `Array#push` instead of <<. All the other callsites use `push`. --- ext/ripper/lib/ripper/lexer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb index 8aad81b74b..73933ca5b6 100644 --- a/ext/ripper/lib/ripper/lexer.rb +++ b/ext/ripper/lib/ripper/lexer.rb @@ -161,7 +161,7 @@ class Ripper 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