Module: Syntaxer::Runners::Default

Defined in:
lib/syntaxer/runner.rb

Instance Method Summary collapse

Instance Method Details

#run(file) ⇒ Object



34
35
36
37
38
39
# File 'lib/syntaxer/runner.rb', line 34

def run file
  result = Open3.popen3(@exec_rule.gsub('%filename%', file)) do |stdin, stdout, stderr, wait_thr|
    stderr.read.split("\n")
  end
  result
end