How could I refactor this code to use only one Dir[ ] call?
Dir[ File.join('.', 'directory_a'), '*' ] + Dir[ File.join('.', 'directory_b'), '*' ]
=> [ contents of directory_a and directory_b ]
How could I refactor this code to use only one Dir[ ] call?
Dir[ File.join('.', 'directory_a'), '*' ] + Dir[ File.join('.', 'directory_b'), '*' ]
=> [ contents of directory_a and directory_b ]