Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Refactoring variabl assignment to use mass assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtis Rainbolt-Greene committed Jan 9, 2012
1 parent 7aa2ea6 commit 106ece7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rocco.rb
Expand Up @@ -220,8 +220,7 @@ def generate_comment_chars
# form `[docs, code]` where both elements are arrays containing the # form `[docs, code]` where both elements are arrays containing the
# raw lines parsed from the input file, comment characters stripped. # raw lines parsed from the input file, comment characters stripped.
def parse(data) def parse(data)
sections = [] sections, docs, code = [], [], []
docs, code = [], []
lines = data.split("\n") lines = data.split("\n")


# The first line is ignored if it is a shebang line. We also ignore the # The first line is ignored if it is a shebang line. We also ignore the
Expand Down

0 comments on commit 106ece7

Please sign in to comment.