Module: Coverfield::Source::FileMethods

Included in:
File, TestFile
Defined in:
lib/coverfield/source/file_methods.rb

Overview

Mixin for shared methods between TestFile and File

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#file_nameObject (readonly)

Returns the value of attribute file_name.



3
4
5
# File 'lib/coverfield/source/file_methods.rb', line 3

def file_name
  @file_name
end

Instance Method Details

#relative_file_nameObject

Returns the file name relative to the app root



12
13
14
# File 'lib/coverfield/source/file_methods.rb', line 12

public def relative_file_name
  @file_name.gsub(@config.app_root + '/', '')
end