Module: Lookout

Defined in:
lib/lookout.rb,
lib/lookout/version.rb,
lib/lookout/rake/tasks.rb

Defined Under Namespace

Modules: Diff, Equalities, Equality, Expectation, Mock, Rake, Recorders, Result, Results, Runners, Stub, UI Classes: Aphonic, Expectations, Output, Recorder, Warning, XML

Constant Summary collapse

Version =
'2.1.4'

Class Method Summary collapse

Class Method Details

.location(location) ⇒ Object



23
24
25
26
# File 'lib/lookout.rb', line 23

def location(location)
  return nil, nil unless match = /\A(.*):(\d+)(?::in .*)?\z/.match(location)
  [match[1], match[2].to_i]
end

.runner(runner = nil) ⇒ Object



28
29
30
31
# File 'lib/lookout.rb', line 28

def runner(runner = nil)
  return @runner = runner if runner
  @runner ||= Lookout::Runners::Console.new.install
end