From 106ece7b8de4a19abdd11ab4c3f472eaa34a5b36 Mon Sep 17 00:00:00 2001 From: Kurtis Rainbolt-Greene Date: Sun, 8 Jan 2012 20:23:23 -0600 Subject: [PATCH] Refactoring variabl assignment to use mass assignment --- lib/rocco.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rocco.rb b/lib/rocco.rb index 8d69bf4..ed9fe10 100644 --- a/lib/rocco.rb +++ b/lib/rocco.rb @@ -220,8 +220,7 @@ def generate_comment_chars # form `[docs, code]` where both elements are arrays containing the # raw lines parsed from the input file, comment characters stripped. def parse(data) - sections = [] - docs, code = [], [] + sections, docs, code = [], [], [] lines = data.split("\n") # The first line is ignored if it is a shebang line. We also ignore the