Class: Pronto::Runner

Inherits:
Object
  • Object
show all
Includes:
Plugin
Defined in:
lib/pronto/runner.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Plugin

included

Class Method Details

.runnersObject


5
6
7
# File 'lib/pronto/runner.rb', line 5

def self.runners
  repository
end

Instance Method Details

#ruby_file?(path) ⇒ Boolean

Returns:

  • (Boolean)

9
10
11
# File 'lib/pronto/runner.rb', line 9

def ruby_file?(path)
  File.extname(path) == '.rb' || ruby_executable?(path)
end