In this document I will showcase code excerpts extracted from a toy project of mine [CSTS][1]. The purpose of this document is to demonstrate coding styles, techniques, and best practices I follow when developing Rails applications.
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
# This method should return [1, 2, 3, 4] | |
a = [[1, 2, [3]], 4] | |
eval "[#{a.to_s.delete('[]')}]" |