class GemHadar::SimpleCov::ContextFormatter

def version

Returns:
  • (String) - the version string read from the VERSION file, or
def version
  File.read('VERSION').chomp
rescue Errno::ENOENT => e
  warn "Using version 'unknown', caught #{e.class}: #{e}"
  'unknown'
end