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.10alpha26 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha25 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha24 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha23 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha22 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha21 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha20 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha19 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha18 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha17 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha16 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha15 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha14 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha13 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha12 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha11 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha10 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha9 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha8 lib/fakes3/util.rb
plntr-fakes3-1.0.0.pre.10alpha7 lib/fakes3/util.rb