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

Version Path
plntr-fakes3-1.0.0.pre.10alpha49 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha48 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha47 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha46 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha45 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha44 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha43 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha42 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha41 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha40 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha39 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha38 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha37 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha36 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha35 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha34 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha33 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha29 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha28 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha27 lib/fakes3/util.rb