Method: Tapout::Reporters::Abstract#source

Defined in:
lib/tapout/reporters/abstract.rb

#source(file) ⇒ String

Cache source file text. This is only used if the TAP-Y stream doesn not provide a snippet and the test file is locatable.

Returns:



441
442
443
444
445
# File 'lib/tapout/reporters/abstract.rb', line 441

def source(file)
  @source[file] ||= (
    File.readlines(file)
  )
end