Permalink
Browse files

Refactoring variabl assignment to use mass assignment

  • Loading branch information...
1 parent 7aa2ea6 commit 106ece7b8de4a19abdd11ab4c3f472eaa34a5b36 Kurtis Rainbolt-Greene committed Jan 9, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rocco.rb
View
@@ -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

0 comments on commit 106ece7

Please sign in to comment.