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
fakes3-1.2.1 lib/fakes3/util.rb
fakes3t1-1.2.0 lib/fakes3/util.rb
fakes3testing2-1.2.0 lib/fakes3/util.rb
fakes3testing1-1.2.0 lib/fakes3/util.rb
fakes3s37-1.2.0 lib/fakes3/util.rb
fakes3test12-1.2.0 lib/fakes3/util.rb
fakes3test11-1.2.0 lib/fakes3/util.rb
fakes3test10-1.2.0 lib/fakes3/util.rb
fakes3test9-1.2.0 lib/fakes3/util.rb
fakes3test8-1.2.0 lib/fakes3/util.rb
fakes3test7-1.2.0 lib/fakes3/util.rb
fakes3test6-1.2.0 lib/fakes3/util.rb
fakes3test5-1.2.0 lib/fakes3/util.rb
fakes3test4-1.2.0 lib/fakes3/util.rb
fakes3test2-1.2.0 lib/fakes3/util.rb
fakes3test-1.2.0 lib/fakes3/util.rb
fakes3as6-1.2.0 lib/fakes3/util.rb
fakes3as5-1.2.0 lib/fakes3/util.rb
fakes3as4-1.2.0 lib/fakes3/util.rb
fakes3as3-1.2.0 lib/fakes3/util.rb