Sha256: 1d99b5f39476ae401fd04e71c95d8fb3aabc95966b317e225839f5c4c5978d09
Contents?: true
Size: 255 Bytes
Versions: 112
Compression:
Stored size: 255 Bytes
Contents
module FakeS3 module Util def Util.strip_before_and_after(string, strip_this) regex_friendly_strip_this = Regexp.escape(strip_this) string.gsub(/\A[#{regex_friendly_strip_this}]+|[#{regex_friendly_strip_this}]+\z/, '') end end end
Version data entries
112 entries across 112 versions & 23 rubygems