Created
September 15, 2014 23:06
-
-
Save pumpkincouture/c49177625722d53a30f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_block(original_file) | |
flights_block = [] | |
original_file.each do |flight| | |
flights_block << flight | |
break if flight == [] | |
end | |
flights_block | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment