Class: Retest::Command::Ruby

Inherits:
Base
  • Object
show all
Defined in:
lib/retest/command/ruby.rb

Instance Attribute Summary

Attributes inherited from Base

#command, #file_system

Instance Method Summary collapse

Methods inherited from Base

#eql?, #hardcoded?, #has_changed?, #has_test?, #hash, #initialize, #switch_to, #to_s

Constructor Details

This class inherits a constructor from Retest::Command::Base

Instance Method Details

#format_batch(*files) ⇒ Object



4
5
6
# File 'lib/retest/command/ruby.rb', line 4

def format_batch(*files)
  files.size > 1 ? %Q{-e "#{files.map { |file| "require './#{file}';" }.join}"} : files.first
end