Module: Coverfield::Source::FileMethods
Overview
Mixin for shared methods between TestFile and File
Instance Attribute Summary collapse
-
#file_name ⇒ Object
readonly
Returns the value of attribute file_name.
Instance Method Summary collapse
-
#relative_file_name ⇒ Object
Returns the file name relative to the app root.
Instance Attribute Details
#file_name ⇒ Object (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_name ⇒ Object
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 |