Created
July 30, 2016 17:47
-
-
Save VelizarHristov/2785c4e15c11db1dcd0a4f0a4b95a4ee to your computer and use it in GitHub Desktop.
This file contains 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 reorder(order) | |
expected_len = trip_items.length - 1 | |
actual_len = order.length | |
if expected_len != actual_len | |
raise ArgumentError.new("Received order of length #{actual_len}, expected #{expected_len}") | |
end | |
# more code goes here | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment