Module: SmartLoggerWrapper::Utils::Path

Included in:
Options::WithPosition
Defined in:
lib/smart_logger_wrapper/utils/path.rb

Constant Summary collapse

DIR_TRIMMER_PATTERN =
/^#{Dir.pwd}\/?/

Class Method Summary collapse

Class Method Details

.trim_dirname(line) ⇒ Object



10
11
12
# File 'lib/smart_logger_wrapper/utils/path.rb', line 10

def trim_dirname(line)
  line.sub(DIR_TRIMMER_PATTERN, '')
end