From ab54e3fe8bdfb858b093744ffe9927764df39aff Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 6 May 2017 20:23:37 +0200 Subject: Replace `Array.new` with literal `[]`. --- lib/plist/parser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plist/parser.rb b/lib/plist/parser.rb index 4de13f8..d49fc80 100755 --- a/lib/plist/parser.rb +++ b/lib/plist/parser.rb @@ -37,7 +37,7 @@ module Plist def initialize @result = nil - @open = Array.new + @open = [] end @@ -147,7 +147,7 @@ module Plist attr_accessor :text, :children def initialize - @children = Array.new + @children = [] end def to_ruby -- cgit v1.2.1