Advertisement
Guest User

Untitled

a guest
Dec 12th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. def ruby_file?(file)
  2. line = file.readlines[0]
  3. if line != nil
  4. !!line.match(/#!.*ruby/) || File.extname(file.path) == ".rb"
  5. end
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement