Sha256: a8d2fd28752f48a2ba36265ca25df4afc1c6c4e2c8df93e93cfbddaeeb3c369d

Contents?: true

Size: 94 Bytes

Versions: 52

Compression:

Stored size: 94 Bytes

Contents

class String
  def strip_trailing_slash
    self[-1..-1] == "/" ? self[0..-2] : self
  end
end

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
redcar-0.5.2dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.5.1dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.4.1 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.4 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.10.1dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.10.0dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.9 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.9.0dev lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.8.4 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.8.3 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.8.2 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.8.1 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.8 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.7.1 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.7 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.6 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.5 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.4.3 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.4.2 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb
redcar-0.3.4.1 lib/openssl/mocha/vendor/meta_project-0.4.15/lib/meta_project/core_ext/string.rb