Skip to content

Instantly share code, notes, and snippets.

@chrisbodhi
Created January 31, 2015 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisbodhi/15210705414f1b4afcf2 to your computer and use it in GitHub Desktop.
Save chrisbodhi/15210705414f1b4afcf2 to your computer and use it in GitHub Desktop.
Before refactor
if file_info[:control_info].length > 0
all_keys = []
keys = []
file_info.each do |fi|
fi[:control_info].each do |arr|
keys << arr[1]
end
all_keys += [keys]
keys = []
end
all_keys
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment