Sha256: 55e6beb9108750633d351dc0aa527a56ec70939622b1220c3fb2c44f4b903563

Contents?: true

Size: 86 Bytes

Versions: 6

Compression:

Stored size: 86 Bytes

Contents

class String
  def strip_http
    self.gsub(/^http\:\/\//,'').gsub(/\/$/,'')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
crags-2.2.1 lib/ext/string.rb
crags-2.2.0 lib/ext/string.rb
crags-2.1.2 lib/ext/string.rb
crags-2.1.1 lib/ext/string.rb
crags-2.1.0 lib/ext/string.rb
crags-2.0.0 lib/ext/string.rb