Sha256: 19261e9fe8f01df2e11ccd2b21c1b079de1e3c67e3e40587775b3371f7860aee
Contents?: true
Size: 204 Bytes
Versions: 2
Compression:
Stored size: 204 Bytes
Contents
require 'active_support/core_ext/string/starts_ends_with' module Sparrow module PathNormalizer def normalize_path(path) path[/./m] = '' if path.starts_with?('/') path end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cp-sparrow-0.0.12 | lib/sparrow/path_normalizer.rb |
cp-sparrow-0.0.11 | lib/sparrow/path_normalizer.rb |