Class: Splot::RSpecCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/splot/command.rb

Instance Attribute Summary

Attributes inherited from Command

#file, #include_path, #line_no, #preloader

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Command

#command, #file_arg, for, #include_args, #initialize, #line_no_arg

Constructor Details

This class inherits a constructor from Splot::Command

Class Method Details

.match?(file) ⇒ Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/splot/command.rb', line 66

def self.match?(file)
  file.match /\_spec\.rb\Z/
end

Instance Method Details

#runnerObject



70
71
72
# File 'lib/splot/command.rb', line 70

def runner
  'rspec'
end