Last active
January 9, 2018 00:46
-
-
Save adrianobarroso/db20c544ab1edc2f9dfa1737ea68c86b 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 flatten_array(array) | |
array.to_s.tr('[]', '').split(',').map(&:to_i) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment