Sha256: 54b40d1b6c6f4d0d0a5740e53b3da906d2d2394cf70dc9c08c74b02e3a115733
Contents?: true
Size: 378 Bytes
Versions: 22
Compression:
Stored size: 378 Bytes
Contents
module Pronto class Runner include Plugin def self.runners repository end def ruby_file?(path) File.extname(path) == '.rb' || ruby_executable?(path) end private def ruby_executable?(path) line = File.open(path) { |file| file.readline } line =~ /#!.*ruby/ rescue ArgumentError, EOFError false end end end
Version data entries
22 entries across 22 versions & 1 rubygems