Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ruby_file?(file)
- line = file.readlines[0]
- if line != nil
- !!line.match(/#!.*ruby/) || File.extname(file.path) == ".rb"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement