File Directory Ruby

pipe = open("|echo *.xml")
files = pipe.readline
pipe.close